useLocalStorage
Reactive LocalStorage.
Usage
Please refer to useStorage
Type Declarations
export declare function useLocalStorage(
key: string,
defaultValue: string,
options?: StorageOptions<string>
): Ref<string>
export declare function useLocalStorage(
key: string,
defaultValue: boolean,
options?: StorageOptions<boolean>
): Ref<boolean>
export declare function useLocalStorage(
key: string,
defaultValue: number,
options?: StorageOptions<number>
): Ref<number>
export declare function useLocalStorage<T>(
key: string,
defaultValue: T,
options?: StorageOptions<T>
): Ref<T>
export declare function useLocalStorage<T = unknown>(
key: string,
defaultValue: null,
options?: StorageOptions<T>
): Ref<T>