mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add constructor arguments in ClassType
This commit is contained in:
committed by
Fredrik Nicol
parent
99d41f818c
commit
928c0be342
4
react/index.d.ts
vendored
4
react/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user