From 6040aa0da9f983190b31fff0cde776774270e43c Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Fri, 30 Jul 2021 20:26:13 +0100 Subject: [PATCH] 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. --- js-packages/tsconfig/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-packages/tsconfig/tsconfig.json b/js-packages/tsconfig/tsconfig.json index 97d92a54e..469bae07e 100644 --- a/js-packages/tsconfig/tsconfig.json +++ b/js-packages/tsconfig/tsconfig.json @@ -16,7 +16,7 @@ "target": "es6", "jsx": "preserve", "allowJs": true, - "lib": ["es2015", "es2017", "dom"], + "lib": ["es2015", "es2017", "dom", "es2018.promise"], "allowSyntheticDefaultImports": true } }