diff --git a/types/rsync/index.d.ts b/types/rsync/index.d.ts index e86d22647a..b67932eb5a 100644 --- a/types/rsync/index.d.ts +++ b/types/rsync/index.d.ts @@ -48,7 +48,7 @@ interface Rsync { stdout: StreamDataHandler, stderr: StreamDataHandler ): child_process.ChildProcess; - + // cwd cwd(cwd: string): string; @@ -63,6 +63,7 @@ interface Rsync { quiet(): Rsync; dirs(): Rsync; links(): Rsync; + chmod(flags: string): Rsync; dry(): Rsync; // accessor methods diff --git a/types/rsync/rsync-tests.ts b/types/rsync/rsync-tests.ts index 41ec4dd9b1..fe9bf39558 100644 --- a/types/rsync/rsync-tests.ts +++ b/types/rsync/rsync-tests.ts @@ -114,6 +114,7 @@ rsync.shell('ssh') .quiet() .dirs() .links() + .chmod("ug=rwX") .dry(); @@ -152,4 +153,4 @@ rsync.include('/a/file') .include('/b/file'); // as Array -rsync.include(['/a/file', '/b/file']); \ No newline at end of file +rsync.include(['/a/file', '/b/file']);