deno/v8worker2.d.ts
2018-05-14 01:19:23 -04:00

7 lines
216 B
TypeScript

declare namespace V8Worker2 {
function print(...args: any[]): void;
type RecvCallback = (ab: ArrayBuffer) => void;
function recv(cb: RecvCallback): void;
function send(ab: ArrayBuffer): null | ArrayBuffer;
}