From b3003535bebf852c3233cab272424feac164a3d0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 12 Jun 2018 03:54:55 +0200 Subject: deno2: compile in TS, build protobuf --- deno2/js/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'deno2/js/main.ts') 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 @@ +/// +//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"; }; -- cgit v1.2.3