summaryrefslogtreecommitdiff
path: root/deno.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'deno.d.ts')
-rw-r--r--deno.d.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/deno.d.ts b/deno.d.ts
new file mode 100644
index 000000000..cf6dcbcec
--- /dev/null
+++ b/deno.d.ts
@@ -0,0 +1,5 @@
+declare module "deno" {
+ type MessageCallback = (msg: Uint8Array) => void;
+ function sub(channel: string, cb: MessageCallback): void;
+ function pub(channel: string, payload: Uint8Array): null | ArrayBuffer;
+}