0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-31 03:36:06 -05:00
denoland-deno/deno2/js/deno.d.ts

7 lines
332 B
TypeScript
Raw Normal View History

2018-06-12 03:54:55 +02:00
// 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;