blob: 301482ea6dcd6d9f357c86ac2cb27b5e4c7fbfc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/// <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"] = () => {
denoPrint("Hello world");
const msg = pb.Msg.fromObject({});
denoPrint(`msg.command: ${msg.command}`);
denoPrint(`ts.version: ${ts.version}`);
denoPrint("Hello world from foo");
return "foo";
};
|