main
Last change
on this file since d565449 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
|
Rev | Line | |
---|
[d565449] | 1 | import { Dispatch, SetStateAction } from 'react';
|
---|
| 2 | declare 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];
|
---|
| 9 | export default useLocalStorage;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.