summaryrefslogtreecommitdiff
path: root/deno2/js/deno.d.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-06-12 03:54:55 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-12 03:59:04 +0200
commitb3003535bebf852c3233cab272424feac164a3d0 (patch)
treeb41fda724f8f00b2b1266f7fcd2728a8f58c8c78 /deno2/js/deno.d.ts
parent356fd18c7385f99766fe1e8d843ec85712bbaf76 (diff)
deno2: compile in TS, build protobuf
Diffstat (limited to 'deno2/js/deno.d.ts')
-rw-r--r--deno2/js/deno.d.ts6
1 files changed, 6 insertions, 0 deletions
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 <ry@tinyclouds.org>
+// 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;