Skip to content

Commit 8c0a745

Browse files
committed
Add typescript declaration file.
1 parent b7ac705 commit 8c0a745

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

v8worker2.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare namespace V8Worker2 {
2+
function print(...args: any[]): void;
3+
type RecvCallback = (ab: ArrayBuffer) => void;
4+
function recv(cb: RecvCallback): void;
5+
function send(ab: ArrayBuffer): null | ArrayBuffer;
6+
}

0 commit comments

Comments
 (0)