mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-25 23:51:04 +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;
|
||||
}
|
||||
|
||||
// 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>;
|
||||
|
@ -17,6 +17,11 @@
|
||||
"react",
|
||||
"flux",
|
||||
"react-transition-group"
|
||||
],
|
||||
"lib": [
|
||||
"es2019",
|
||||
"dom",
|
||||
"dom.iterable"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user