mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-27 00:21:34 +02:00
TypeScript: enable es2019 lib for newer definitions
This commit is contained in:
parent
e20b375433
commit
2caee2eadd
5
src/@types/global.d.ts
vendored
5
src/@types/global.d.ts
vendored
@ -49,11 +49,6 @@ declare global {
|
|||||||
mxNotifier: typeof Notifier;
|
mxNotifier: typeof Notifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
// workaround for https://github.com/microsoft/TypeScript/issues/30933
|
|
||||||
interface ObjectConstructor {
|
|
||||||
fromEntries?(xs: [string|number|symbol, any][]): object;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Document {
|
interface Document {
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasStorageAccess
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasStorageAccess
|
||||||
hasStorageAccess?: () => Promise<boolean>;
|
hasStorageAccess?: () => Promise<boolean>;
|
||||||
|
@ -17,6 +17,11 @@
|
|||||||
"react",
|
"react",
|
||||||
"flux",
|
"flux",
|
||||||
"react-transition-group"
|
"react-transition-group"
|
||||||
|
],
|
||||||
|
"lib": [
|
||||||
|
"es2019",
|
||||||
|
"dom",
|
||||||
|
"dom.iterable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user