add hw2
This commit is contained in:
10
node_modules/jotai/ts3.8/vanilla/utils/atomWithRefresh.d.ts
generated
vendored
Normal file
10
node_modules/jotai/ts3.8/vanilla/utils/atomWithRefresh.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { WritableAtom } from 'jotai/vanilla';
|
||||
type Read<Value, Args extends unknown[], Result> = WritableAtom<Value, Args, Result>['read'];
|
||||
type Write<Value, Args extends unknown[], Result> = WritableAtom<Value, Args, Result>['write'];
|
||||
export declare function atomWithRefresh<Value, Args extends unknown[], Result>(read: Read<Value, Args, Result>, write: Write<Value, Args, Result>): WritableAtom<Value, Args | [
|
||||
], Result | void>;
|
||||
export declare function atomWithRefresh<Value>(read: Read<Value, [
|
||||
], void>): WritableAtom<Value, [
|
||||
], void>;
|
||||
export {};
|
||||
declare type Awaited<T> = T extends Promise<infer V> ? V : T;
|
||||
Reference in New Issue
Block a user