add hw2
This commit is contained in:
		
							
								
								
									
										11
									
								
								node_modules/jotai/ts3.8/esm/vanilla/utils/atomWithReset.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								node_modules/jotai/ts3.8/esm/vanilla/utils/atomWithReset.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| import type { WritableAtom } from 'jotai/vanilla'; | ||||
| import { RESET } from './constants'; | ||||
| type SetStateActionWithReset<Value> = Value | typeof RESET | ((prev: Value) => Value | typeof RESET); | ||||
| type WithInitialValue<Value> = { | ||||
|     init: Value; | ||||
| }; | ||||
| export declare function atomWithReset<Value>(initialValue: Value): WritableAtom<Value, [ | ||||
|     SetStateActionWithReset<Value> | ||||
| ], void> & WithInitialValue<Value>; | ||||
| export {}; | ||||
| declare type Awaited<T> = T extends Promise<infer V> ? V : T; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik