UNPKG

jotai

Version:

👻 Next gen state management that will spook you

5 lines • 293 B
import { WritableAtom } from 'jotai'; import { Scope } from '../core/atom'; import { RESET } from './constants'; export declare function useResetAtom<Value>(anAtom: WritableAtom<Value, typeof RESET>, scope?: Scope): () => void; declare type Awaited<T> = T extends Promise<infer V> ? V : T;