diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-03-10 15:11:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 15:11:27 -0400 |
commit | 8078d976d29aa12819e3f5a781c846d67868b0d6 (patch) | |
tree | 3ec7786dd9b7e787c27f58e2041110e6fca86e2b /cli/js/lib.deno.ns.d.ts | |
parent | 6443e4aed16868c17111a56634aa733211430f46 (diff) |
Add Deno.umask (#4290)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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; |