add hw2
This commit is contained in:
		
							
								
								
									
										16
									
								
								node_modules/jotai/esm/vanilla/utils/splitAtom.d.mts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								node_modules/jotai/esm/vanilla/utils/splitAtom.d.mts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| import type { Atom, PrimitiveAtom, WritableAtom } from 'jotai/vanilla'; | ||||
| type SplitAtomAction<Item> = { | ||||
|     type: 'remove'; | ||||
|     atom: PrimitiveAtom<Item>; | ||||
| } | { | ||||
|     type: 'insert'; | ||||
|     value: Item; | ||||
|     before?: PrimitiveAtom<Item>; | ||||
| } | { | ||||
|     type: 'move'; | ||||
|     atom: PrimitiveAtom<Item>; | ||||
|     before?: PrimitiveAtom<Item>; | ||||
| }; | ||||
| export declare function splitAtom<Item, Key>(arrAtom: WritableAtom<Item[], [Item[]], void>, keyExtractor?: (item: Item) => Key): WritableAtom<PrimitiveAtom<Item>[], [SplitAtomAction<Item>], void>; | ||||
| export declare function splitAtom<Item, Key>(arrAtom: Atom<Item[]>, keyExtractor?: (item: Item) => Key): Atom<Atom<Item>[]>; | ||||
| export {}; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik