Merge master into typings-2.0

* Changed Files
This commit is contained in:
Paul van Brenk
2016-08-18 14:53:30 -07:00
34 changed files with 498 additions and 327 deletions

6
react/index.d.ts vendored
View File

@@ -200,7 +200,7 @@ declare namespace React {
type SFC<P> = StatelessComponent<P>;
interface StatelessComponent<P> {
(props?: P, context?: any): ReactElement<any>;
(props: P, context?: any): ReactElement<any>;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: P;
@@ -279,9 +279,11 @@ declare namespace React {
isTrusted: boolean;
nativeEvent: Event;
preventDefault(): void;
isDefaultPrevented(): boolean;
stopPropagation(): void;
target: EventTarget & T;
isPropagationStopped(): boolean;
persist(): void;
target: EventTarget;
timeStamp: Date;
type: string;
}