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