mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Change return value of all cp functions to ShellString
This commit is contained in:
Vendored
+4
-2
@@ -50,16 +50,18 @@ export function find(...path: Array<string | string[]>): ShellArray;
|
||||
* Copies files. The wildcard * is accepted.
|
||||
* @param source The source.
|
||||
* @param dest The destination.
|
||||
* @return Object with shell exit code.
|
||||
*/
|
||||
export function cp(source: string | string[], dest: string): ShellArray;
|
||||
export function cp(source: string | string[], dest: string): ShellString;
|
||||
|
||||
/**
|
||||
* Copies files. The wildcard * is accepted.
|
||||
* @param options Available options: -f: force (default behavior) -n: no-clobber -u: only copy if source is newer than dest -r, -R: recursive -L: follow symlinks -P: don't follow symlinks
|
||||
* @param source The source.
|
||||
* @param dest The destination.
|
||||
* @return Object with shell exit code.
|
||||
*/
|
||||
export function cp(options: string, source: string | string[], dest: string): void;
|
||||
export function cp(options: string, source: string | string[], dest: string): ShellString;
|
||||
|
||||
/**
|
||||
* Removes files. The wildcard * is accepted.
|
||||
|
||||
Reference in New Issue
Block a user