mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00

Just check in the generated files and create them using js/pbjs_hack.py. This allows vscode to be used and sane compilations.
13 lines
382 B
TypeScript
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";
|
|
};
|