From 8078d976d29aa12819e3f5a781c846d67868b0d6 Mon Sep 17 00:00:00 2001 From: dubiousjim Date: Tue, 10 Mar 2020 15:11:27 -0400 Subject: Add Deno.umask (#4290) --- cli/js/lib.deno.ns.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/js/lib.deno.ns.d.ts') diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 8eb2e1f4d..6950d9050 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -287,6 +287,14 @@ declare namespace Deno { */ export function chdir(directory: string): void; + /** + * **UNSTABLE**: New API. Maybe needs permissions. + * + * If `mask` is provided, sets the process umask. Always returns what the umask + * was before the call. + */ + export function umask(mask?: number): number; + /** **UNSTABLE**: might move to `Deno.symbols`. */ export const EOF: unique symbol; export type EOF = typeof EOF; -- cgit v1.2.3