1 | import { useAtom } from 'jotai';
|
2 | import { PrimitiveAtom } from 'jotai';
|
3 | type Scope = NonNullable<Parameters<typeof useAtom>[1]>;
|
4 | export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a?: Action) => Value, scope?: Scope): [
|
5 | Value,
|
6 | (action?: Action) => void
|
7 | ];
|
8 | export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a: Action) => Value, scope?: Scope): [
|
9 | Value,
|
10 | (action: Action) => void
|
11 | ];
|
12 | export {};
|
13 | declare type Awaited<T> = T extends Promise<infer V> ? V : T; |
\ | No newline at end of file |