coersystem
Version:
Library for Angular projects
22 lines (21 loc) • 856 B
TypeScript
import { IAppSource } from "coersystem/interfaces";
/** Controls source information in sessionStorage */
export declare class Source {
private static readonly storage;
/** Save the source to sessionStorage and add the breadcrumb */
static Set(pageName: string): void;
/** */
private static Save;
/** Get the source from sessionStorage */
static Get(): IAppSource | null;
/** Gets the first breadcrumb from sessionStorage */
static GetRoot(): IAppSource | null;
/** Save the pageResponse to sessionStorage */
static SetPageResponse<T>(pageResponse: T): void;
/** Gets the pageResponse from sessionStorage */
static GetPageResponse<T>(): T | null;
/** Remove the pageResponse from sessionStorage */
static ClearPageResponse(): void;
/** Remove the sessionStorage */
static Reset(): void;
}