Add constructor arguments in ClassType

This commit is contained in:
Fredrik Nicol
2017-01-21 11:58:33 +01:00
committed by Fredrik Nicol
parent 99d41f818c
commit 928c0be342

4
react/index.d.ts vendored
View File

@@ -230,8 +230,8 @@ declare namespace React {
*/
type ClassType<P, T extends Component<P, ComponentState>, C extends ComponentClass<P>> =
C &
(new () => T) &
(new () => { props: P });
(new (props?: P, context?: any) => T) &
(new (props?: P, context?: any) => { props: P });
//
// Component Specs and Lifecycle