diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-07 14:02:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 14:02:29 -0400 |
commit | e438ac2c74c823882dc9c9ecde2a9e9ed7bcfb4b (patch) | |
tree | 480b2daa83e31b26c5d611feff021674d289e492 /core/libdeno/libdeno.d.ts | |
parent | 5350abbc7ffdba6d17166fa00ad89e86979a43f7 (diff) |
Add op_id throughout op API (#2734)
Removes the magic number hack to switch between flatbuffers and the
minimal dispatcher.
Adds machinery to pass the op_id through the shared_queue.
Diffstat (limited to 'core/libdeno/libdeno.d.ts')
-rw-r--r-- | core/libdeno/libdeno.d.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/libdeno/libdeno.d.ts b/core/libdeno/libdeno.d.ts index 1bc7367d9..8a26e49ca 100644 --- a/core/libdeno/libdeno.d.ts +++ b/core/libdeno/libdeno.d.ts @@ -13,13 +13,14 @@ interface EvalErrorInfo { } declare interface MessageCallback { - (msg: Uint8Array): void; + (opId: number, msg: Uint8Array): void; } declare interface DenoCore { recv(cb: MessageCallback): void; send( + opId: number, control: null | ArrayBufferView, data?: ArrayBufferView ): null | Uint8Array; |