@react-hookz/web
Version:
React hooks done right, for browser and SSR.
8 lines (7 loc) • 469 B
TypeScript
import { type UseStorageValueOptions, type UseStorageValueResult } from '../useStorageValue/index.js';
type UseLocalStorageValue = <Type, Default extends Type = Type, Initialize extends boolean | undefined = boolean | undefined>(key: string, options?: UseStorageValueOptions<Type, Initialize>) => UseStorageValueResult<Type, Default, Initialize>;
/**
* Manages a single localStorage key.
*/
export declare const useLocalStorageValue: UseLocalStorageValue;
export {};