Fix of React SyntheticEvent.timeStamp property type (#15165)

The `timeStamp` property of events is a numeric value in milliseconds, not a `Date`.
https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp
This commit is contained in:
Arsène von Wyss
2017-03-24 17:04:37 +01:00
committed by Andy
parent 919eca848c
commit 6ffca66c9d

2
react/index.d.ts vendored
View File

@@ -289,7 +289,7 @@ declare namespace React {
persist(): void;
// If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12239
target: EventTarget;
timeStamp: Date;
timeStamp: number;
type: string;
}