1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 03:01:22 +02:00

Add support for .finally in promises (#3)

See: https://stackoverflow.com/a/54746036/11091039

We use `Promise.finally` in core, but the `tsconfig.json` doesn't list it as supported.
This commit is contained in:
David Wheatley
2021-07-30 20:26:13 +01:00
committed by GitHub
parent 91d4c63090
commit 6040aa0da9

View File

@@ -16,7 +16,7 @@
"target": "es6",
"jsx": "preserve",
"allowJs": true,
"lib": ["es2015", "es2017", "dom"],
"lib": ["es2015", "es2017", "dom", "es2018.promise"],
"allowSyntheticDefaultImports": true
}
}