mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* create-react-class: add definitions * react-dom-factories: add definitions * create-react-class: add tests, fix errors * react-dom-factories: add tests, fix lint * react: remove previously deprecated APIs * Remove deprecated usages in other definitions * redux-form: disable strictFunctionTypes Changes to react typings revealed errors in redux-form that are present in 'master'. This needs to be handled separately. * Update create-react-class, react-dom-factories author * Avoid importing create-react-class where possible * Move top-level createReactClass tests to create-react-class
14 lines
506 B
TypeScript
14 lines
506 B
TypeScript
// Type definitions for create-react-class 15.6
|
|
// Project: https://facebook.github.io/react/
|
|
// Definitions by: John Gozde <https://github.com/jgoz>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { ComponentSpec, ClassicComponentClass } from "react";
|
|
|
|
declare namespace createReactClass {}
|
|
declare function createReactClass<P, S>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
|
|
|
|
export as namespace createReactClass;
|
|
export = createReactClass;
|