1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-15 10:35:19 -05:00
denoland-deno/js/deno.d.ts

11 lines
275 B
TypeScript
Raw Normal View History

// Copyright 2018 the Deno authors. All rights reserved. MIT license.
type MessageCallback = (msg: Uint8Array) => void;
2018-06-14 08:31:31 -04:00
interface Deno {
recv(cb: MessageCallback): void;
send(msg: ArrayBufferView): null | Uint8Array;
2018-06-14 08:31:31 -04:00
print(x: string): void;
}
declare let deno: Deno;