Fix void type for cp return value to ShellArray

cp function returns an object that is e.g. important for error code
checking.
This commit is contained in:
Alexander Futász
2019-01-23 16:38:18 +01:00
parent 600f91ec2b
commit aca7a733bd
+2 -1
View File
@@ -4,6 +4,7 @@
// Vojtech Jasny <https://github.com/voy>
// George Kalpakas <https://github.com/gkalpak>
// Paul Huynh <https://github.com/pheromonez>
// Alexander Futász <https://github.com/aldafu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
@@ -50,7 +51,7 @@ export function find(...path: Array<string | string[]>): ShellArray;
* @param source The source.
* @param dest The destination.
*/
export function cp(source: string | string[], dest: string): void;
export function cp(source: string | string[], dest: string): ShellArray;
/**
* Copies files. The wildcard * is accepted.