state-manager-utility
Version:
Global state management library
14 lines (13 loc) • 515 B
TypeScript
/****************************************
* Gateway for storage utility
* implements SetItem,GetItem, using storage-utility
****************************************/
export type SetItemFn = (key: string, value: any) => void;
export type GetItemFn = (key: string) => any;
declare let SetItem: SetItemFn;
declare let GetItem: GetItemFn;
declare function InitializeLocalStorageUtils({ ...props }: {
SetItem: SetItemFn;
GetItem: GetItemFn;
}): void;
export { GetItem, SetItem, InitializeLocalStorageUtils };