diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 01:19:23 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 01:19:23 -0400 |
| commit | bfb3cd7a5c55dbf59eacb7d93e88f38632e47260 (patch) | |
| tree | 65fdee9c91c262c3ea28eefbd39c8ae257a8e76f /v8worker2.d.ts | |
| parent | be7828684b888a8c9743e6dd7c54c924c076c8e2 (diff) | |
use tsc for type checking
Diffstat (limited to 'v8worker2.d.ts')
| -rw-r--r-- | v8worker2.d.ts | 6 |
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; +} |
