diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-07-06 07:15:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 13:15:13 +0200 |
commit | 6b78729ba8c21f6b3ba5a4621fc363d8772e177f (patch) | |
tree | 7ac29fd456c6a0e643bdd804d026d96ac8678199 /cli/js/lib.deno.ns.d.ts | |
parent | 79610378d3001757b7664a0cefa8fc99125f5a18 (diff) |
feat: Deno.chown() make uid, gid args optional (#4612)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index cd82b4adf..82b3fc829 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1080,10 +1080,14 @@ declare namespace Deno { * Throws Error (not implemented) if executed on Windows * * @param path path to the file - * @param uid user id (UID) of the new owner - * @param gid group id (GID) of the new owner + * @param uid user id (UID) of the new owner, or `null` for no change + * @param gid group id (GID) of the new owner, or `null` for no change */ - export function chownSync(path: string | URL, uid: number, gid: number): void; + export function chownSync( + path: string | URL, + uid: number | null, + gid: number | null + ): void; /** Change owner of a regular file or directory. This functionality * is not available on Windows. @@ -1097,13 +1101,13 @@ declare namespace Deno { * Throws Error (not implemented) if executed on Windows * * @param path path to the file - * @param uid user id (UID) of the new owner - * @param gid group id (GID) of the new owner + * @param uid user id (UID) of the new owner, or `null` for no change + * @param gid group id (GID) of the new owner, or `null` for no change */ export function chown( path: string | URL, - uid: number, - gid: number + uid: number | null, + gid: number | null ): Promise<void>; export interface RemoveOptions { |