UNPKG

@sanp/ahooks-vue

Version:
5 lines (4 loc) 286 B
import { Ref } from 'vue-demi'; export declare type LocalforageKey = string; export declare function useLocalforage<T = undefined>(key: string): Promise<Ref<T | undefined>>; export declare function useLocalforage<T = any>(key: string, defaultValue: T | (() => T)): Promise<Ref<T>>;