summaryrefslogtreecommitdiff
path: root/core/core.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'core/core.d.ts')
-rw-r--r--core/core.d.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/core/core.d.ts b/core/core.d.ts
deleted file mode 100644
index 1e9eb7c04..000000000
--- a/core/core.d.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-
-// This file contains APIs that are introduced into the global namespace by
-// 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 {
- (opId: number, msg: Uint8Array): void;
-}
-
-declare interface DenoCore {
- dispatch(
- opId: number,
- control: Uint8Array,
- zeroCopy?: ArrayBufferView | null
- ): Uint8Array | null;
- setAsyncHandler(cb: MessageCallback): void;
- sharedQueue: {
- head(): number;
- numRecords(): number;
- size(): number;
- push(buf: Uint8Array): boolean;
- reset(): void;
- shift(): Uint8Array | null;
- };
-}