UNPKG

396 BTypeScriptView Raw
1import { useSetAtom } from 'jotai/react';
2import { WritableAtom } from 'jotai/vanilla';
3import { RESET } from 'jotai/vanilla/utils';
4type Options = Parameters<typeof useSetAtom>[1];
5export declare function useResetAtom(anAtom: WritableAtom<unknown, [
6 typeof RESET
7], unknown>, options?: Options): () => unknown;
8export {};
9declare type Awaited<T> = T extends Promise<infer V> ? V : T;
\No newline at end of file