From 0dd131d4a512e8e8370b571d6801eabb4cb30e58 Mon Sep 17 00:00:00 2001 From: dubiousjim Date: Sat, 7 Mar 2020 22:29:12 -0500 Subject: Rename perm to mode (#4276) There's a lot of variation in doc comments and internal code about whether chmod/0o777-style permissions are called `mode` or `perm`. (For example, mkdir and writeFile choose differently.) Had proposed earlier to go consistently with `perm`, but on balance devs prefer to go with `mode`. --- cli/js/lib.deno.ns.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 2acf62874..8eb2e1f4d 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1023,7 +1023,7 @@ declare namespace Deno { ino: number | null; /** **UNSTABLE**: Match behavior with Go on Windows for `mode`. * - * The underlying raw `st_mod`e bits that contain the standard Linux/Mac OS + * The underlying raw `st_mode` bits that contain the standard Unix * permissions for this file/directory. */ mode: number | null; /** Number of hard links pointing to this file. @@ -1233,7 +1233,7 @@ declare namespace Deno { * exist at the specified path (defaults to `true`). */ create?: boolean; /** Permissions always applied to file. */ - perm?: number; + mode?: number; } /** Synchronously write data to the given path, by default creating a new -- cgit v1.2.3