1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/deno.d.ts

8 lines
268 B
TypeScript
Raw Normal View History

2018-05-23 16:45:01 -04:00
declare module "deno" {
type MessageCallback = (msg: Uint8Array) => void;
function sub(channel: string, cb: MessageCallback): void;
function pub(channel: string, payload: Uint8Array): null | ArrayBuffer;
2018-05-27 12:49:20 -04:00
function readFileSync(filename: string): Uint8Array;
2018-05-23 16:45:01 -04:00
}