summaryrefslogtreecommitdiff
path: root/v8worker2.d.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-14 01:19:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-14 01:19:23 -0400
commitbfb3cd7a5c55dbf59eacb7d93e88f38632e47260 (patch)
tree65fdee9c91c262c3ea28eefbd39c8ae257a8e76f /v8worker2.d.ts
parentbe7828684b888a8c9743e6dd7c54c924c076c8e2 (diff)
use tsc for type checking
Diffstat (limited to 'v8worker2.d.ts')
-rw-r--r--v8worker2.d.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/v8worker2.d.ts b/v8worker2.d.ts
new file mode 100644
index 000000000..9ace56ff7
--- /dev/null
+++ b/v8worker2.d.ts
@@ -0,0 +1,6 @@
+declare namespace V8Worker2 {
+ function print(...args: any[]): void;
+ type RecvCallback = (ab: ArrayBuffer) => void;
+ function recv(cb: RecvCallback): void;
+ function send(ab: ArrayBuffer): null | ArrayBuffer;
+}