mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Add Deno.umask (#4290)
This commit is contained in:
parent
6443e4aed1
commit
8078d976d2
7 changed files with 80 additions and 0 deletions
8
cli/js/lib.deno.ns.d.ts
vendored
8
cli/js/lib.deno.ns.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue