From 5446492426ee3ea651dda9d1108c19bce5feda45 Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Fri, 17 May 2019 02:17:11 +0200 Subject: [PATCH] fix(public/fs): fixes copy types --- src/public/fs/copy.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/public/fs/copy.ts b/src/public/fs/copy.ts index 4a5f332..8297d36 100644 --- a/src/public/fs/copy.ts +++ b/src/public/fs/copy.ts @@ -12,19 +12,19 @@ export type TCopyFilterFn = export default expose(copy) as TExposedOverload< typeof copy, - | [string, string] - | [string, string, IFsWriteOptions] - | [string, string, TCopyFilterFn] - | [string, string, IFsWriteOptions | undefined, TCopyFilterFn] + | [string | string[], string] + | [string | string[], string, IFsWriteOptions] + | [string | string[], string, TCopyFilterFn] + | [string | string[], string, IFsWriteOptions | undefined, TCopyFilterFn] >; function copy( - src: string, + src: string | string[], dest: string, filter?: TCopyFilterFn ): () => Promise; function copy( - src: string, + src: string | string[], dest: string, options?: IFsWriteOptions, filter?: TCopyFilterFn