TypeScript: enable es2019 lib for newer definitions

This commit is contained in:
Michael Telatynski 2020-08-17 18:20:57 +01:00
parent e20b375433
commit 2caee2eadd
2 changed files with 5 additions and 5 deletions

View file

@ -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<boolean>;

View file

@ -17,6 +17,11 @@
"react",
"flux",
"react-transition-group"
],
"lib": [
"es2019",
"dom",
"dom.iterable"
]
},
"include": [