mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 13:15:16 +00:00
BREAKING: make Deno.hostname unstable (#5108)
This commit is contained in:
parent
eb505f8afc
commit
b8364a2636
5 changed files with 11 additions and 10 deletions
8
cli/js/lib.deno.ns.d.ts
vendored
8
cli/js/lib.deno.ns.d.ts
vendored
|
@ -97,14 +97,6 @@ declare namespace Deno {
|
|||
* */
|
||||
export function test(name: string, fn: () => void | Promise<void>): void;
|
||||
|
||||
/** Get the `hostname` of the machine the Deno process is running on.
|
||||
*
|
||||
* console.log(Deno.hostname());
|
||||
*
|
||||
* Requires `allow-env` permission.
|
||||
*/
|
||||
export function hostname(): string;
|
||||
|
||||
/** Exit the Deno process with optional exit code. If no exit code is supplied
|
||||
* then Deno will exit with return code of 0.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue