diff options
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r-- | core/lib.deno_core.d.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts index b238bd6b3..7f3ea2a19 100644 --- a/core/lib.deno_core.d.ts +++ b/core/lib.deno_core.d.ts @@ -61,6 +61,16 @@ declare namespace Deno { function writeAll(rid: number, buf: Uint8Array): Promise<void>; /** + * Synchronously read from a (stream) resource that implements readSync(). + */ + function readSync(rid: number, buf: Uint8Array): number; + + /** + * Synchronously write to a (stream) resource that implements writeSync(). + */ + function writeSync(rid: number, buf: Uint8Array): number; + + /** * Print a message to stdout or stderr */ function print(message: string, is_err?: boolean): void; |