mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +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.unstable.d.ts
vendored
8
cli/js/lib.deno.unstable.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue