mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00: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";
|
|
};
|