Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/deno_typescript/lib.deno_core.d.ts>DenoCore

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface DenoCore
import { type DenoCore } from "https://deno.land/x/deno@v0.28.1/deno_typescript/lib.deno_core.d.ts";

Properties

sharedQueue: { head(): number; numRecords(): number; size(): number; push(buf: Uint8Array): boolean; reset(): void; shift(): Uint8Array | null; }
shared: SharedArrayBuffer
errorToJSON: (e: Error) => string

Methods

print(s: string, isErr?: boolean): void
dispatch(
opId: number,
control: Uint8Array,
zeroCopy?: ArrayBufferView | null,
): Uint8Array | null
setAsyncHandler(cb: MessageCallback): void
ops(): Record<string, number>
recv(cb: MessageCallback): void
send(
opId: number,
control: null | ArrayBufferView,
data?: ArrayBufferView,
): null | Uint8Array
evalContext(code: string): [any, EvalErrorInfo | null]

Evaluate provided code in the current context. It differs from eval(...) in that it does not create a new context. Returns an array: [output, errInfo]. If an error occurs, output becomes null and errInfo is non-null.