summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorColin Ihrig <cjihrig@gmail.com>2022-11-09 09:46:50 -0500
committerGitHub <noreply@github.com>2022-11-09 09:46:50 -0500
commitc36496b3bb9a25640d209d9ac7b2c201bfdc99fb (patch)
tree6a1edafba777cf158104ba4d4a8ac3e19adfe4d0 /cli
parent0500aa1f71859772fba7c581e8cb2c1c4804dc2a (diff)
feat: stabilize Deno.uid() and Deno.gid() (#16424)
Closes https://github.com/denoland/deno_std/issues/2791
Diffstat (limited to 'cli')
-rw-r--r--cli/dts/lib.deno.ns.d.ts28
-rw-r--r--cli/dts/lib.deno.unstable.d.ts32
2 files changed, 28 insertions, 32 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 43c46754b..623f0d848 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -4950,4 +4950,32 @@ declare namespace Deno {
* @category Timers
*/
export function unrefTimer(id: number): void;
+
+ /**
+ * Returns the user id of the process on POSIX platforms. Returns null on Windows.
+ *
+ * ```ts
+ * console.log(Deno.uid());
+ * ```
+ *
+ * Requires `allow-sys` permission.
+ *
+ * @tags allow-sys
+ * @category Runtime Environment
+ */
+ export function uid(): number | null;
+
+ /**
+ * Returns the group id of the process on POSIX platforms. Returns null on windows.
+ *
+ * ```ts
+ * console.log(Deno.gid());
+ * ```
+ *
+ * Requires `allow-sys` permission.
+ *
+ * @tags allow-sys
+ * @category Runtime Environment
+ */
+ export function gid(): number | null;
}
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 94fc0b5d6..ad3176804 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -271,38 +271,6 @@ declare namespace Deno {
/** **UNSTABLE**: New API, yet to be vetted.
*
- * Returns the user id of the Deno process on POSIX platforms. Returns `null`
- * on Windows.
- *
- * ```ts
- * console.log(Deno.uid());
- * ```
- *
- * Requires `allow-sys` permission.
- *
- * @tags allow-sys
- * @category Runtime Environment
- */
- export function uid(): number | null;
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
- * Returns the group id of the process on POSIX platforms. Returns `null` on
- * Windows.
- *
- * ```ts
- * console.log(Deno.gid());
- * ```
- *
- * Requires `allow-sys` permission.
- *
- * @tags allow-sys
- * @category Runtime Environment
- */
- export function gid(): number | null;
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
* All plain number types for interfacing with foreign functions.
*
* @category FFI