summaryrefslogtreecommitdiff
path: root/js/main.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-08-15 09:40:30 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-08-15 12:40:30 -0400
commit168d92f5d254a0671a1c34ca79d7b5600084b139 (patch)
treee299eb12f7341d6665b89302acd188f6117ac2c5 /js/main.ts
parent0ce7b6e8701bf00ec181a72df030404aecb5bc4a (diff)
Use typescript strict mode (#505)
Diffstat (limited to 'js/main.ts')
-rw-r--r--js/main.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/main.ts b/js/main.ts
index 87fe30e6c..d652b18bc 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -72,5 +72,7 @@ export default function denoMain() {
const inputFn = argv[1];
const mod = runtime.resolveModule(inputFn, `${cwd}/`);
- mod.compileAndRun();
+ assert(mod != null);
+ // TypeScript does not track assert, therefore not null assertion
+ mod!.compileAndRun();
}