summaryrefslogtreecommitdiff
path: root/core/lib.deno_core.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r--core/lib.deno_core.d.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts
index 2da28b413..2cec6be76 100644
--- a/core/lib.deno_core.d.ts
+++ b/core/lib.deno_core.d.ts
@@ -10,15 +10,15 @@ declare namespace Deno {
/** Call an op in Rust, and synchronously receive the result. */
function opSync(
opName: string,
- args?: any,
- zeroCopy?: Uint8Array,
+ a?: any,
+ b?: any,
): any;
/** Call an op in Rust, and asynchronously receive the result. */
function opAsync(
opName: string,
- args?: any,
- zeroCopy?: Uint8Array,
+ a?: any,
+ b?: any,
): Promise<any>;
/**
@@ -38,5 +38,8 @@ declare namespace Deno {
/** Get heap stats for current isolate/worker */
function heapStats(): Record<string, number>;
+
+ /** Encode a string to its Uint8Array representation. */
+ function encode(input: string): Uint8Array;
}
}