From c41544ac7b502fbdb6c1ee96a604490b72eb7770 Mon Sep 17 00:00:00 2001 From: James Bradlee Date: Tue, 31 May 2022 10:42:44 +0200 Subject: feat(unstable): add Deno.getGid (#14528) --- cli/dts/lib.deno.unstable.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 0ed27c5d5..b8eb886e4 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -317,6 +317,18 @@ declare namespace Deno { */ export function getUid(): 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.getGid()); + * ``` + * + * Requires `allow-env` permission. + */ + export function getGid(): number | null; + /** All possible types for interfacing with foreign functions */ export type NativeType = | "void" -- cgit v1.2.3