React 0.13.0->0.13.1 and make arguments to Component constructor optional

This commit is contained in:
Vincent Siao
2015-03-18 09:46:36 -07:00
parent 424bb99eac
commit b35ac04569
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for ReactWithAddons v0.13.0 (internal module)
// Type definitions for ReactWithAddons v0.13.1 (internal module)
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for ReactWithAddons v0.13.0 (external module)
// Type definitions for ReactWithAddons v0.13.1 (external module)
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -131,7 +131,7 @@ declare module "react/addons" {
// Base component for plain JS classes
class Component<P, S> implements ComponentLifecycle<P, S> {
constructor(props: P, context: any);
constructor(props?: P, context?: any);
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
setState(state: S, callback?: () => any): void;
forceUpdate(): void;
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for React v0.13.0 (internal module)
// Type definitions for React v0.13.1 (internal module)
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -131,7 +131,7 @@ declare module React {
// Base component for plain JS classes
class Component<P, S> implements ComponentLifecycle<P, S> {
constructor(props: P, context: any);
constructor(props?: P, context?: any);
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
setState(state: S, callback?: () => any): void;
forceUpdate(): void;
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for React v0.13.0 (external module)
// Type definitions for React v0.13.1 (external module)
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -131,7 +131,7 @@ declare module "react" {
// Base component for plain JS classes
class Component<P, S> implements ComponentLifecycle<P, S> {
constructor(props: P, context: any);
constructor(props?: P, context?: any);
setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
setState(state: S, callback?: () => any): void;
forceUpdate(): void;