From 6ffca66c9d1edfdfa1f42f8d82db59e4297e302b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ars=C3=A8ne=20von=20Wyss?= Date: Fri, 24 Mar 2017 17:04:37 +0100 Subject: [PATCH] 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 --- react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/index.d.ts b/react/index.d.ts index 698b3d8904..73cb0ae16f 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -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; }