0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-31 03:36:06 -05:00
denoland-deno/deno2/js/main.ts
Ryan Dahl dd48f8095c Simplify pbjs build with hack.
Just check in the generated files and create them using
js/pbjs_hack.py. This allows vscode to be used and sane
compilations.
2018-06-12 05:16:41 +02:00

13 lines
382 B
TypeScript

/// <reference path="deno.d.ts" />
//import { main as pb } from "./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";
};