0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-31 11:49:31 -05:00
denoland-deno/deno2/js/main.ts

14 lines
388 B
TypeScript
Raw Normal View History

2018-06-12 03:54:55 +02:00
/// <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");
2018-06-11 22:29:34 +02:00
window["denoMain"] = () => {
2018-06-12 03:54:55 +02:00
//const msg = pb.Msg.fromObject({});
//denoPrint(`msg.command: ${msg.command}`);
denoPrint(`ts.version: ${ts.version}`);
2018-06-11 22:41:43 +02:00
denoPrint("Hello world from foo");
return "foo";
2018-06-11 21:32:06 +02:00
};