add hw2
This commit is contained in:
10
node_modules/jotai/ts3.8/esm/react/useAtomValue.d.ts
generated
vendored
Normal file
10
node_modules/jotai/ts3.8/esm/react/useAtomValue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Atom, ExtractAtomValue } from 'jotai/vanilla';
|
||||
import { useStore } from './Provider';
|
||||
type Options = Parameters<typeof useStore>[0] & {
|
||||
delay?: number;
|
||||
unstable_promiseStatus?: boolean;
|
||||
};
|
||||
export declare function useAtomValue<Value>(atom: Atom<Value>, options?: Options): Awaited<Value>;
|
||||
export declare function useAtomValue<AtomType extends Atom<unknown>>(atom: AtomType, options?: Options): Awaited<ExtractAtomValue<AtomType>>;
|
||||
export {};
|
||||
declare type Awaited<T> = T extends Promise<infer V> ? V : T;
|
||||
Reference in New Issue
Block a user