summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-05-09 12:44:35 -0400
committerGitHub <noreply@github.com>2020-05-09 12:44:35 -0400
commitb8364a263694e9845a4ad03fac53fb913667f63a (patch)
treee81795bf787aa7c934ab3f3ca509dea8cb5658fc /cli/js/lib.deno.unstable.d.ts
parenteb505f8afcd56f4d4a372cdfbb66906d8a5107c7 (diff)
BREAKING: make Deno.hostname unstable (#5108)
Diffstat (limited to 'cli/js/lib.deno.unstable.d.ts')
-rw-r--r--cli/js/lib.deno.unstable.d.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts
index a523300cc..10587d3df 100644
--- a/cli/js/lib.deno.unstable.d.ts
+++ b/cli/js/lib.deno.unstable.d.ts
@@ -1174,4 +1174,12 @@ declare namespace Deno {
state: PermissionState;
constructor(state: PermissionState);
}
+
+ /** Get the `hostname` of the machine the Deno process is running on.
+ *
+ * console.log(Deno.hostname());
+ *
+ * Requires `allow-env` permission.
+ */
+ export function hostname(): string;
}