diff options
Diffstat (limited to 'core/core.d.ts')
-rw-r--r-- | core/core.d.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/core.d.ts b/core/core.d.ts index b1d1ac57f..0c530e343 100644 --- a/core/core.d.ts +++ b/core/core.d.ts @@ -4,15 +4,13 @@ // Deno core. These are not intended to be used directly by runtime users of // Deno and therefore do not flow through to the runtime type library. -declare interface MessageCallback { - (msg: Uint8Array): void; -} +declare type MessageCallback = (promiseId: number, msg: Uint8Array) => void; declare interface DenoCore { dispatch( control: Uint8Array, zeroCopy?: ArrayBufferView | null - ): Uint8Array | null; + ): Uint8Array | null | number; setAsyncHandler(cb: MessageCallback): void; sharedQueue: { head(): number; |