diff options
Diffstat (limited to 'core/core.d.ts')
-rw-r--r-- | core/core.d.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/core.d.ts b/core/core.d.ts index 0c530e343..b1d1ac57f 100644 --- a/core/core.d.ts +++ b/core/core.d.ts @@ -4,13 +4,15 @@ // 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 type MessageCallback = (promiseId: number, msg: Uint8Array) => void; +declare interface MessageCallback { + (msg: Uint8Array): void; +} declare interface DenoCore { dispatch( control: Uint8Array, zeroCopy?: ArrayBufferView | null - ): Uint8Array | null | number; + ): Uint8Array | null; setAsyncHandler(cb: MessageCallback): void; sharedQueue: { head(): number; |