summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-10-26 14:18:58 +0200
committerGitHub <noreply@github.com>2022-10-26 14:18:58 +0200
commit046ab7dc8aa9cc343bd7de2e5efc2e40d73e4998 (patch)
treef267e93632953d1b319669e69f31d54c39c0fb65 /cli/dts/lib.deno.ns.d.ts
parent851db03a6eb25ef899437c1393745f7fe9d15585 (diff)
feat: Stabilize Deno.osRelease() API (#15973)
Closes https://github.com/denoland/deno/issues/15928
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index eea3c7947..1d72e1438 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -345,6 +345,22 @@ declare namespace Deno {
export const noColor: boolean;
/**
+ * Returns the release version of the Operating System.
+ *
+ * ```ts
+ * console.log(Deno.osRelease());
+ * ```
+ *
+ * Requires `allow-env` permission.
+ * Under consideration to possibly move to Deno.build or Deno.versions and if
+ * it should depend sys-info, which may not be desirable.
+ *
+ * @tags allow-env
+ * @category Runtime Environment
+ */
+ export function osRelease(): string;
+
+ /**
* Options which define the permissions within a test or worker context.
*
* `"inherit"` ensures that all permissions of the parent process will be