diff options
Diffstat (limited to 'node_modules/@phntms/use-local-state/lib/index.d.ts')
-rw-r--r-- | node_modules/@phntms/use-local-state/lib/index.d.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/@phntms/use-local-state/lib/index.d.ts b/node_modules/@phntms/use-local-state/lib/index.d.ts new file mode 100644 index 0000000..7c9c492 --- /dev/null +++ b/node_modules/@phntms/use-local-state/lib/index.d.ts @@ -0,0 +1,5 @@ +declare type Dispatch<A> = (value: A) => void; +declare type SetStateAction<S> = S | ((prevState: S) => S); +declare const useLocalState: <S>(key: string, defaultValue: S | (() => S)) => [S, Dispatch<SetStateAction<S>>, () => void]; +export default useLocalState; +//# sourceMappingURL=index.d.ts.map
\ No newline at end of file |