mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 18:19:08 -05:00
9778eceaf5
- Port protobuf messages to flatbuffers. - Demo linking to rust from C++ executable. - Start using the prototype TS libraries.
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
|
// All rights reserved. MIT License.
|
|
type MessageCallback = (channel: string, msg: ArrayBuffer) => void;
|
|
|
|
interface Deno {
|
|
recv(cb: MessageCallback): void;
|
|
send(channel: string, msg: ArrayBuffer): null | ArrayBuffer;
|
|
print(x: string): void;
|
|
}
|
|
|
|
declare let deno: Deno;
|