From 2caee2eadd6eb9d90c4df5a86a41d82f581de97d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 17 Aug 2020 18:20:57 +0100 Subject: [PATCH] TypeScript: enable es2019 lib for newer definitions --- src/@types/global.d.ts | 5 ----- tsconfig.json | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 13520e218d8..86ee995a132 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -49,11 +49,6 @@ declare global { mxNotifier: typeof Notifier; } - // workaround for https://github.com/microsoft/TypeScript/issues/30933 - interface ObjectConstructor { - fromEntries?(xs: [string|number|symbol, any][]): object; - } - interface Document { // https://developer.mozilla.org/en-US/docs/Web/API/Document/hasStorageAccess hasStorageAccess?: () => Promise; diff --git a/tsconfig.json b/tsconfig.json index db040d1f316..b139e8e8d1a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,11 @@ "react", "flux", "react-transition-group" + ], + "lib": [ + "es2019", + "dom", + "dom.iterable" ] }, "include": [