UNPKG

@daysnap/utils

Version:
32 lines (29 loc) 1.18 kB
export { StorageManager, factory } from './factory.js'; export { Storage } from './storage.js'; declare const getCache: () => { setItem: <T = any>(key: string, val: T) => T; getItem: <T_1 = any>(key: string, defaultVal?: Partial<T_1> | null) => T_1; removeItem: (key: string) => void; updateItem: <T_2 = any>(key: string, val: Partial<T_2>) => T_2; clear: () => void; generate: <T_3 = any>(key: string) => { setItem: (val: T_3) => T_3; getItem: (defaultVal?: Partial<T_3> | undefined) => T_3; removeItem: () => void; updateItem: (val: Partial<T_3>) => T_3; }; }; declare const getLocal: () => { setItem: <T = any>(key: string, val: T) => T; getItem: <T_1 = any>(key: string, defaultVal?: Partial<T_1> | null) => T_1; removeItem: (key: string) => void; updateItem: <T_2 = any>(key: string, val: Partial<T_2>) => T_2; clear: () => void; generate: <T_3 = any>(key: string) => { setItem: (val: T_3) => T_3; getItem: (defaultVal?: Partial<T_3> | undefined) => T_3; removeItem: () => void; updateItem: (val: Partial<T_3>) => T_3; }; }; export { getCache, getLocal };