summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-01-31 14:44:19 +0900
committerGitHub <noreply@github.com>2022-01-31 14:44:19 +0900
commit49a0db0d2a2a697320ea95bacaca9bc61199c951 (patch)
tree4c5d7557afe1c93821ac5259e999e776f537041d /cli/dts/lib.deno.unstable.d.ts
parent245f69256b9e22f7759b887e82138ad3844a8cf4 (diff)
feat(unstable): add Deno.getUid (#13496)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts12
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"