diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-12 03:54:55 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-12 03:59:04 +0200 |
commit | b3003535bebf852c3233cab272424feac164a3d0 (patch) | |
tree | b41fda724f8f00b2b1266f7fcd2728a8f58c8c78 /deno2/js/main.ts | |
parent | 356fd18c7385f99766fe1e8d843ec85712bbaf76 (diff) |
deno2: compile in TS, build protobuf
Diffstat (limited to 'deno2/js/main.ts')
-rw-r--r-- | deno2/js/main.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deno2/js/main.ts b/deno2/js/main.ts index 0a098dd41..61294a307 100644 --- a/deno2/js/main.ts +++ b/deno2/js/main.ts @@ -1,6 +1,13 @@ +/// <reference path="deno.d.ts" /> +//import { main as pb } from "deno_pb/msg.pb" +import * as ts from "typescript"; + const globalEval = eval; const window = globalEval("this"); window["denoMain"] = () => { + //const msg = pb.Msg.fromObject({}); + //denoPrint(`msg.command: ${msg.command}`); + denoPrint(`ts.version: ${ts.version}`); denoPrint("Hello world from foo"); return "foo"; }; |