From 6ff82ecb633f8f56bfde045589639440c7e620f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Fut=C3=A1sz?= Date: Thu, 24 Jan 2019 11:03:42 +0100 Subject: [PATCH] Change return value of all cp functions to ShellString --- types/shelljs/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/shelljs/index.d.ts b/types/shelljs/index.d.ts index 9b5c6a76a7..85c930be0a 100644 --- a/types/shelljs/index.d.ts +++ b/types/shelljs/index.d.ts @@ -50,16 +50,18 @@ export function find(...path: Array): 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.