Repository navigation
Expand file tree
/
Copy pathreact.d.ts
More file actions
38 lines (35 loc) · 1.98 KB
/
Copy pathreact.d.ts
File metadata and controls
38 lines (35 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* The React shim. In a plugin built with the preset, `import ... from 'react'` resolves here; the types are React's own.
* Call setReact(sdk.react) first thing in activate().
*/
import type * as ReactNS from 'react';
export declare function setReact(r: typeof ReactNS): void;
export declare const Fragment: typeof ReactNS.Fragment;
export declare const StrictMode: typeof ReactNS.StrictMode;
export declare const Suspense: typeof ReactNS.Suspense;
export declare const createElement: typeof ReactNS.createElement;
export declare const cloneElement: typeof ReactNS.cloneElement;
export declare const isValidElement: typeof ReactNS.isValidElement;
export declare const createContext: typeof ReactNS.createContext;
export declare const createRef: typeof ReactNS.createRef;
export declare const forwardRef: typeof ReactNS.forwardRef;
export declare const memo: typeof ReactNS.memo;
export declare const lazy: typeof ReactNS.lazy;
export declare const startTransition: typeof ReactNS.startTransition;
export declare const useState: typeof ReactNS.useState;
export declare const useReducer: typeof ReactNS.useReducer;
export declare const useEffect: typeof ReactNS.useEffect;
export declare const useLayoutEffect: typeof ReactNS.useLayoutEffect;
export declare const useInsertionEffect: typeof ReactNS.useInsertionEffect;
export declare const useRef: typeof ReactNS.useRef;
export declare const useMemo: typeof ReactNS.useMemo;
export declare const useCallback: typeof ReactNS.useCallback;
export declare const useContext: typeof ReactNS.useContext;
export declare const useId: typeof ReactNS.useId;
export declare const useImperativeHandle: typeof ReactNS.useImperativeHandle;
export declare const useSyncExternalStore: typeof ReactNS.useSyncExternalStore;
export declare const useTransition: typeof ReactNS.useTransition;
export declare const useDeferredValue: typeof ReactNS.useDeferredValue;
export declare const useDebugValue: typeof ReactNS.useDebugValue;
declare const React: typeof ReactNS;
export default React;