From b3003535bebf852c3233cab272424feac164a3d0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 12 Jun 2018 03:54:55 +0200 Subject: deno2: compile in TS, build protobuf --- deno2/js/deno.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 deno2/js/deno.d.ts (limited to 'deno2/js/deno.d.ts') diff --git a/deno2/js/deno.d.ts b/deno2/js/deno.d.ts new file mode 100644 index 000000000..4c797a5f6 --- /dev/null +++ b/deno2/js/deno.d.ts @@ -0,0 +1,6 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. +type MessageCallback = (msg: ArrayBuffer) => void; +declare function denoSub(channel: string, cb: MessageCallback): void; +declare function denoPub(channel: string, msg: ArrayBuffer): null | ArrayBuffer; +declare function denoPrint(x: string): void; -- cgit v1.2.3