summaryrefslogtreecommitdiff
path: root/js/core.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-03-26 23:22:07 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-03-26 08:22:07 -0400
commitc43cfedeba5d6ac96e1b1febed8549e750606e3f (patch)
tree7b3799259895acadf25294704ea03a9465051e9c /js/core.ts
parented2977d3c0e9ab3295a3bb47b844b2953d608197 (diff)
namespace reorg: libdeno and DenoCore to Deno.core (#1998)
Diffstat (limited to 'js/core.ts')
-rw-r--r--js/core.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/js/core.ts b/js/core.ts
index 9e94ffdbb..03473ff3d 100644
--- a/js/core.ts
+++ b/js/core.ts
@@ -1,13 +1,4 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { window } from "./window";
-type MessageCallback = (msg: Uint8Array) => void;
-
-// Declared in core/shared_queue.js.
-interface DenoCore {
- setAsyncHandler(cb: MessageCallback): void;
- dispatch(control: Uint8Array, zeroCopy?: Uint8Array): null | Uint8Array;
-}
-
-// TODO(ry) Rename to Deno.core.shared and Deno.core.setAsyncHandler.
-export const DenoCore = window.DenoCore as DenoCore;
+export const core = window.Deno.core as DenoCore;