mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
8 lines
268 B
TypeScript
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;
|
|
}
|