0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/deno2/js/main.ts

14 lines
382 B
TypeScript
Raw Normal View History

2018-06-11 21:54:55 -04:00
/// <reference path="deno.d.ts" />
//import { main as pb } from "./msg.pb"
2018-06-11 21:54:55 -04:00
import * as ts from "typescript";
const globalEval = eval;
const window = globalEval("this");
2018-06-11 16:29:34 -04:00
window["denoMain"] = () => {
2018-06-11 21:54:55 -04:00
//const msg = pb.Msg.fromObject({});
//denoPrint(`msg.command: ${msg.command}`);
denoPrint(`ts.version: ${ts.version}`);
2018-06-11 16:41:43 -04:00
denoPrint("Hello world from foo");
return "foo";
2018-06-11 15:32:06 -04:00
};