mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
33 lines
1.4 KiB
TypeScript
33 lines
1.4 KiB
TypeScript
// Type definitions for react-is 16.5
|
|
// Project: https://reactjs.org/
|
|
// Definitions by: Avi Vahl <https://github.com/AviVahl>
|
|
// Christian Chown <https://github.com/christianchown>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
export as namespace ReactIs;
|
|
|
|
import { ReactElement, ReactType } from 'react';
|
|
|
|
export function typeOf(value: any): symbol | undefined;
|
|
export function isValidElementType(value: any): value is ReactType;
|
|
export function isAsyncMode(value: any): value is ReactElement<any>;
|
|
export function isContextConsumer(value: any): value is ReactElement<any>;
|
|
export function isContextProvider(value: any): value is ReactElement<any>;
|
|
export function isElement(value: any): value is ReactElement<any>;
|
|
export function isForwardRef(value: any): value is ReactElement<any>;
|
|
export function isFragment(value: any): value is ReactElement<any>;
|
|
export function isProfiler(value: any): value is ReactElement<any>;
|
|
export function isPortal(value: any): value is ReactElement<any>;
|
|
export function isStrictMode(value: any): value is ReactElement<any>;
|
|
|
|
export const AsyncMode: symbol;
|
|
export const ContextProvider: symbol;
|
|
export const ContextConsumer: symbol;
|
|
export const Element: symbol;
|
|
export const ForwardRef: symbol;
|
|
export const Fragment: symbol;
|
|
export const Portal: symbol;
|
|
export const Profiler: symbol;
|
|
export const StrictMode: symbol;
|