From 5c3ee5406f842cec9e4db2e297c006b12cbf5dfc Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 6 May 2020 02:01:00 +0200 Subject: Move `with_player` to a new module Move this function to a new module as I'd like to use it for checking the "Watch Credits" button. Also change from a callback to a `Promise`. Need to include the `Promise` lib via ES2015 in tsconfig to be able to build with promises. --- tsconfig.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tsconfig.json') diff --git a/tsconfig.json b/tsconfig.json index 7dc02bd..c521338 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,10 @@ "module": "commonjs", "target": "ES5", "outDir": "./build", - "sourceMap": true + "sourceMap": true, + "lib": [ + "ES2015" + ] }, "files": [ "src/index.ts" -- cgit v1.2.3