diff options
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index bc87ec02a..b8402cd9b 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -133,6 +133,18 @@ declare namespace Deno { */ export function networkInterfaces(): NetworkInterfaceInfo[]; + /** **Unstable** new API. yet to be vetted. + * + * Returns the user id of the process on POSIX platforms. Returns null on windows. + * + * ```ts + * console.log(Deno.getUid()); + * ``` + * + * Requires `allow-env` permission. + */ + export function getUid(): number | null; + /** All possible types for interfacing with foreign functions */ export type NativeType = | "void" |