UNPKG

@sanp/ahooks-vue

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