1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 17:49:08 -05:00
denoland-deno/js/deno.d.ts

12 lines
288 B
TypeScript
Raw Normal View History

2018-06-11 21:54:55 -04:00
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License.
type MessageCallback = (msg: ArrayBuffer) => void;
2018-06-14 08:31:31 -04:00
interface Deno {
recv(cb: MessageCallback): void;
send(msg: ArrayBuffer): null | ArrayBuffer;
2018-06-14 08:31:31 -04:00
print(x: string): void;
}
declare let deno: Deno;