summaryrefslogtreecommitdiff
path: root/core/lib.deno_core.d.ts
diff options
context:
space:
mode:
authorZicklag <zicklag@katharostech.com>2022-07-31 15:15:29 -0500
committerGitHub <noreply@github.com>2022-07-31 22:15:29 +0200
commitd81c5b51b32247c96af78d90e89429e33b2a58ac (patch)
tree810cd4456e4bcf0065616c2d942f97f86ff8c2f5 /core/lib.deno_core.d.ts
parent2703996dea73c496d79fcedf165886a1659622d1 (diff)
core: Add types for `Deno.core.print()` (#15283)
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r--core/lib.deno_core.d.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts
index 37cd33190..dcc50d263 100644
--- a/core/lib.deno_core.d.ts
+++ b/core/lib.deno_core.d.ts
@@ -64,6 +64,11 @@ declare namespace Deno {
function write(rid: number, buf: Uint8Array): Promise<number>;
/**
+ * Print a message to stdout or stderr
+ */
+ function print(message: string, is_err?: boolean): void;
+
+ /**
* Shutdown a resource
*/
function shutdown(rid: number): Promise<void>;