1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/deno.d.ts

15 lines
451 B
TypeScript
Raw Normal View History

2018-05-28 21:50:44 -04:00
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License.
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-28 14:39:02 -04:00
function writeFileSync(
filename: string,
data: Uint8Array,
perm: number
): void;
2018-05-23 16:45:01 -04:00
}