UNPKG

326 BTypeScriptView Raw
1import { useSetAtom } from 'jotai/react';
2import type { WritableAtom } from 'jotai/vanilla';
3import { RESET } from 'jotai/vanilla/utils';
4type Options = Parameters<typeof useSetAtom>[1];
5export declare function useResetAtom(anAtom: WritableAtom<unknown, [typeof RESET], unknown>, options?: Options): () => unknown;
6export {};