-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
namespace reorg: libdeno and DenoCore to Deno.core (#1998)
- Loading branch information
Showing
26 changed files
with
178 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// 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 { | ||
(msg: Uint8Array): void; | ||
} | ||
|
||
declare interface DenoCore { | ||
dispatch( | ||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.