add hw2
This commit is contained in:
		
							
								
								
									
										21
									
								
								node_modules/jotai/ts3.8/react/utils/useReducerAtom.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/jotai/ts3.8/react/utils/useReducerAtom.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| import { useAtom } from 'jotai/react'; | ||||
| import type { PrimitiveAtom } from 'jotai/vanilla'; | ||||
| type Options = Parameters<typeof useAtom>[1]; | ||||
| /** | ||||
|  * @deprecated please use a recipe instead | ||||
|  * https://github.com/pmndrs/jotai/pull/2467 | ||||
|  */ | ||||
| export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a?: Action) => Value, options?: Options): [ | ||||
|     Value, | ||||
|     (action?: Action) => void | ||||
| ]; | ||||
| /** | ||||
|  * @deprecated please use a recipe instead | ||||
|  * https://github.com/pmndrs/jotai/pull/2467 | ||||
|  */ | ||||
| export declare function useReducerAtom<Value, Action>(anAtom: PrimitiveAtom<Value>, reducer: (v: Value, a: Action) => Value, options?: Options): [ | ||||
|     Value, | ||||
|     (action: Action) => void | ||||
| ]; | ||||
| export {}; | ||||
| declare type Awaited<T> = T extends Promise<infer V> ? V : T; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik