mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
11 lines
288 B
TypeScript
11 lines
288 B
TypeScript
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
|
// All rights reserved. MIT License.
|
|
type MessageCallback = (msg: ArrayBuffer) => void;
|
|
|
|
interface Deno {
|
|
recv(cb: MessageCallback): void;
|
|
send(msg: ArrayBuffer): null | ArrayBuffer;
|
|
print(x: string): void;
|
|
}
|
|
|
|
declare let deno: Deno;
|