1 | import { useAtom } from 'jotai/react';
|
2 | import { PrimitiveAtom } from 'jotai/vanilla';
|
3 | type Options = Parameters<typeof useAtom>[1];
|
4 | export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a?: Action) => Value, options?: Options): [
|
5 | Value,
|
6 | (action?: Action) => void
|
7 | ];
|
8 | export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a: Action) => Value, options?: Options): [
|
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 |