summaryrefslogtreecommitdiff
path: root/node_modules/@phntms/use-local-state/lib/index.d.ts
blob: 7c9c492cb78abd67dc13906cf881c1d9f92cf167 (plain) (blame)
1
2
3
4
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