UNPKG

511 BTypeScriptView Raw
1// Type definitions for create-react-class 15.6
2// Project: https://facebook.github.io/react/
3// Definitions by: John Gozde <https://github.com/jgoz>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5// TypeScript Version: 2.8
6
7import { ComponentSpec, ClassicComponentClass } from "react";
8
9declare namespace createReactClass {}
10declare function createReactClass<P, S = {}>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
11
12export as namespace createReactClass;
13export = createReactClass;