mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-17 19:52:23 +08:00
Merge master into typings-2.0
* Changed Files
This commit is contained in:
6
react/index.d.ts
vendored
6
react/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user