UNPKG

@types/create-react-class

Version:
27 lines (19 loc) 940 B
# Installation > `npm install --save @types/create-react-class` # Summary This package contains type definitions for create-react-class (https://facebook.github.io/react/). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-react-class. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-react-class/index.d.ts) ````ts import { ClassicComponentClass, ComponentSpec } from "react"; declare namespace createReactClass {} declare function createReactClass<P, S = {}>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>; export as namespace createReactClass; export = createReactClass; ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: [@types/react](https://npmjs.com/package/@types/react) # Credits These definitions were written by [John Gozde](https://github.com/jgoz).