From aca7a733bd08d1a423b76ab1586f22afce2eeb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Fut=C3=A1sz?= Date: Wed, 23 Jan 2019 16:38:18 +0100 Subject: [PATCH] Fix void type for cp return value to ShellArray cp function returns an object that is e.g. important for error code checking. --- types/shelljs/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/shelljs/index.d.ts b/types/shelljs/index.d.ts index 1f1eb5c375..9b5c6a76a7 100644 --- a/types/shelljs/index.d.ts +++ b/types/shelljs/index.d.ts @@ -4,6 +4,7 @@ // Vojtech Jasny // George Kalpakas // Paul Huynh +// Alexander Futász // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -50,7 +51,7 @@ export function find(...path: Array): 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.