Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 2caee2e

Browse files
committedAug 17, 2020
TypeScript: enable es2019 lib for newer definitions
1 parent e20b375 commit 2caee2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/@types/global.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ declare global {
4949
mxNotifier: typeof Notifier;
5050
}
5151

52-
// workaround for https://github.com/microsoft/TypeScript/issues/30933
53-
interface ObjectConstructor {
54-
fromEntries?(xs: [string|number|symbol, any][]): object;
55-
}
56-
5752
interface Document {
5853
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasStorageAccess
5954
hasStorageAccess?: () => Promise<boolean>;

‎tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"react",
1818
"flux",
1919
"react-transition-group"
20+
],
21+
"lib": [
22+
"es2019",
23+
"dom",
24+
"dom.iterable"
2025
]
2126
},
2227
"include": [

0 commit comments

Comments
 (0)