From d325566a7e2d736870990835dfe076a30a1b26ab Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 9 Jan 2020 01:17:44 +1100 Subject: Runtime Compiler API (#3442) Also restructures the compiler TypeScript files to make them easier to manage and eventually integrate deno_typescript fully. --- cli/js/unit_test_runner.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/js/unit_test_runner.ts') diff --git a/cli/js/unit_test_runner.ts b/cli/js/unit_test_runner.ts index c2c654696..dd095058f 100755 --- a/cli/js/unit_test_runner.ts +++ b/cli/js/unit_test_runner.ts @@ -9,14 +9,14 @@ import { interface TestResult { perms: string; - output: string; + output?: string; result: number; } function permsToCliFlags(perms: Permissions): string[] { return Object.keys(perms) - .map((key): string => { - if (!perms[key]) return ""; + .map(key => { + if (!perms[key as keyof Permissions]) return ""; const cliFlag = key.replace( /\.?([A-Z])/g, -- cgit v1.2.3