source: imaps-frontend/node_modules/react-use/lib/useLocalStorage.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 375 bytes
Line 
1import { Dispatch, SetStateAction } from 'react';
2declare const useLocalStorage: <T>(key: string, initialValue?: T | undefined, options?: {
3 raw: true;
4} | {
5 raw: false;
6 serializer: (value: T) => string;
7 deserializer: (value: string) => T;
8} | undefined) => [T | undefined, Dispatch<SetStateAction<T | undefined>>, () => void];
9export default useLocalStorage;
Note: See TracBrowser for help on using the repository browser.