UNPKG

jotai

Version:

👻 Primitive and flexible state management for React

7 lines (6 loc) • 326 B
import { useSetAtom } from '../../react.js'; import { RESET } from '../../vanilla/utils.js'; import type { WritableAtom } from '../../vanilla.js'; type Options = Parameters<typeof useSetAtom>[1]; export declare function useResetAtom<T>(anAtom: WritableAtom<unknown, [typeof RESET], T>, options?: Options): () => T; export {};