UNPKG

397 BTypeScriptView Raw
1import { useSetAtom } from 'jotai/react';
2import { Getter, Setter } from 'jotai/vanilla';
3type Options = Parameters<typeof useSetAtom>[1];
4export declare function useAtomCallback<Result, Args extends unknown[]>(callback: (get: Getter, set: Setter, ...arg: Args) => Result, options?: Options): (...args: Args) => Result;
5export {};
6declare type Awaited<T> = T extends Promise<infer V> ? V : T;
\No newline at end of file