JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1418966
  • Score
    100M100P100Q184276F
  • License MIT

TypeScript definitions for react-is

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/react-is) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/react-is

    Summary

    This package contains type definitions for react-is (https://reactjs.org/).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-is/v17.

    index.d.ts

    // Type definitions for react-is 17.0
    // Project: https://reactjs.org/
    // Definitions by: Avi Vahl <https://github.com/AviVahl>
    //                 Christian Chown <https://github.com/christianchown>
    //                 Sebastian Silbermann <https://github.com/eps1lon>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    // NOTE: Users of the React 18 alpha should add a reference
    // to 'react-is/next' in their project. See next.d.ts's top comment
    // for reference and documentation on how exactly to do it.
    
    export as namespace ReactIs;
    
    import { ElementType, LazyExoticComponent, MemoExoticComponent, ReactElement } from "react";
    
    export function typeOf(value: any): symbol | undefined;
    export function isValidElementType(value: any): value is ElementType;
    export function isAsyncMode(value: any): value is ReactElement;
    export function isContextConsumer(value: any): value is ReactElement;
    export function isContextProvider(value: any): value is ReactElement;
    export function isElement(value: any): value is ReactElement;
    export function isForwardRef(value: any): value is ReactElement;
    export function isFragment(value: any): value is ReactElement;
    export function isLazy(value: any): value is LazyExoticComponent<any>;
    export function isMemo(value: any): value is MemoExoticComponent<any>;
    export function isProfiler(value: any): value is ReactElement;
    export function isPortal(value: any): value is ReactElement;
    export function isStrictMode(value: any): value is ReactElement;
    export function isSuspense(value: any): value is ReactElement;
    
    export const AsyncMode: symbol;
    export const ContextConsumer: symbol;
    export const ContextProvider: symbol;
    export const Element: symbol;
    export const ForwardRef: symbol;
    export const Fragment: symbol;
    export const Lazy: symbol;
    export const Memo: symbol;
    export const Portal: symbol;
    export const Profiler: symbol;
    export const StrictMode: symbol;
    export const Suspense: symbol;
    

    Additional Details

    • Last updated: Wed, 27 Sep 2023 07:12:04 GMT
    • Dependencies: @types/react
    • Global values: ReactIs

    Credits

    These definitions were written by Avi Vahl, Christian Chown, and Sebastian Silbermann.