Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
TypeScript: enable es2019 lib for newer definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Aug 17, 2020
1 parent e20b375 commit 2caee2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/@types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"react",
"flux",
"react-transition-group"
],
"lib": [
"es2019",
"dom",
"dom.iterable"
]
},
"include": [
Expand Down

0 comments on commit 2caee2e

Please sign in to comment.