diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-08-15 09:40:30 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-15 12:40:30 -0400 |
commit | 168d92f5d254a0671a1c34ca79d7b5600084b139 (patch) | |
tree | e299eb12f7341d6665b89302acd188f6117ac2c5 /js/main.ts | |
parent | 0ce7b6e8701bf00ec181a72df030404aecb5bc4a (diff) |
Use typescript strict mode (#505)
Diffstat (limited to 'js/main.ts')
-rw-r--r-- | js/main.ts | 4 |
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(); } |