bs-datatable
Version:
A data table based on Bootstrap 5
19 lines (18 loc) • 767 B
TypeScript
import { CachedItem, ISessionStorageService } from "../commonTypes/common-types";
declare class SessionStorageService implements ISessionStorageService {
constructor();
addItem(key: string, value: any, expiry: Date): void;
appendItem(key: string, appendFactory: (value: any) => any): void;
createExpiryKey(key: string): string;
getItemRaw(key: string): CachedItem;
getItem(key: string): any;
removeItem(key: string): void;
/**
* Removes all the items starting with the given prefix from session storage
* Note that if no prefix is provided, it will remove all the keys.
* @param {string?} prefix optional
* @returns
*/
removeAll(prefix: string): void;
}
export { SessionStorageService };