diff options
author | Ry Dahl <ry@tinyclouds.org> | 2019-11-14 15:05:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 15:05:36 -0500 |
commit | 4902a1cacb0348efde9ab342172f2706ac27e837 (patch) | |
tree | abbc0dbdcc03b232d01274cea0940a377223a767 /cli/js/os.ts | |
parent | 8b90b8e88325d28fe41d8312ea91417b6e66a12e (diff) |
Turn on TS strict mode for deno_typescript (#3330)
Diffstat (limited to 'cli/js/os.ts')
-rw-r--r-- | cli/js/os.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/os.ts b/cli/js/os.ts index 89e5652cb..4e17e2030 100644 --- a/cli/js/os.ts +++ b/cli/js/os.ts @@ -95,7 +95,8 @@ export function start(preserveDenoNamespace = true, source?: string): Start { for (const [name, opId] of Object.entries(ops)) { const opName = `OP_${name.toUpperCase()}`; // Assign op ids to actual variables - dispatch[opName] = opId; + // TODO(ry) This type casting is gross and should be fixed. + ((dispatch as unknown) as { [key: string]: number })[opName] = opId; } // First we send an empty `Start` message to let the privileged side know we // are ready. The response should be a `StartRes` message containing the CLI |