1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/js/deno.d.ts
2018-07-24 10:38:11 -04:00

10 lines
275 B
TypeScript

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