@slan-health/taro-vueuse
Version:
taro vue版本hooks
13 lines (12 loc) • 428 B
TypeScript
export type setAction = (key: string, data: any) => Promise<boolean>;
export type getAction = (key?: string) => Promise<any>;
export type getActionSync = (key: string) => any;
export type removeAction = (key: string) => Promise<boolean>;
export interface IAction {
getSync: getActionSync;
set: setAction;
get: getAction;
remove: removeAction;
}
declare function useStorage(): IAction;
export default useStorage;