mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Change most uses of ComponentClass<P> to a type that represents the class
This more accurately reflects that createClass returns a class, not an instance of a class. This will be more important as React v0.13 is released which supports using ES6 classes as components.
This commit is contained in:
@@ -32,7 +32,7 @@ var INPUT_REF: string = "input";
|
||||
// Top-Level API
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
var reactClass: React.ComponentClass<Props> = React.createClass<Props>({
|
||||
var reactClass = React.createClass<Props>({
|
||||
getDefaultProps: () => {
|
||||
return <Props>{
|
||||
hello: undefined,
|
||||
|
||||
Reference in New Issue
Block a user