add hw2
This commit is contained in:
21
node_modules/jotai/ts3.8/vanilla/utils/splitAtom.d.ts
generated
vendored
Normal file
21
node_modules/jotai/ts3.8/vanilla/utils/splitAtom.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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 {};
|
||||
declare type Awaited<T> = T extends Promise<infer V> ? V : T;
|
||||
Reference in New Issue
Block a user