mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
6 lines
332 B
TypeScript
6 lines
332 B
TypeScript
// 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;
|