mirror of
https://github.com/denoland/deno.git
synced 2025-01-31 03:36:06 -05:00
dd48f8095c
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";
|
|
};
|