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