mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
Add missing node os.release() implementation (#4065)
This commit is contained in:
parent
fe9ac35a65
commit
fb08cf7005
8 changed files with 66 additions and 11 deletions
6
cli/js/lib.deno.ns.d.ts
vendored
6
cli/js/lib.deno.ns.d.ts
vendored
|
@ -52,6 +52,12 @@ declare namespace Deno {
|
|||
*/
|
||||
export function hostname(): string;
|
||||
|
||||
/** Get the OS release. Requires the `--allow-env` flag.
|
||||
*
|
||||
* console.log(Deno.osRelease());
|
||||
*/
|
||||
export function osRelease(): string;
|
||||
|
||||
/** Exit the Deno process with optional exit code. */
|
||||
export function exit(code?: number): never;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue