deno/deno.d.ts
2018-05-27 12:49:20 -04:00

8 lines
268 B
TypeScript

declare module "deno" {
type MessageCallback = (msg: Uint8Array) => void;
function sub(channel: string, cb: MessageCallback): void;
function pub(channel: string, payload: Uint8Array): null | ArrayBuffer;
function readFileSync(filename: string): Uint8Array;
}