mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* create-react-class: default state to {}
It's irksome having to always provide a `{}`...
* Added props-without-state test
* Added props declaration to CCC
14 lines
511 B
TypeScript
14 lines
511 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.8
|
|
|
|
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;
|