UNPKG

create-ls

Version:

A simple state manager for local storage in React applications.

9 lines 299 B
type LocalStorageAPI<T> = { get: () => T | undefined; set: (value: T) => void; reset: () => void; hasValue: () => boolean; }; declare const useFunction: <T>(name: string, initialValue?: T) => LocalStorageAPI<T>; export { useFunction as createLS }; //# sourceMappingURL=index.d.ts.map