Skip to content

Commit

Permalink
fix(public/fs): fixes copy types
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 17, 2019
1 parent c634c1d commit 5446492
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/public/fs/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;
function copy(
src: string,
src: string | string[],
dest: string,
options?: IFsWriteOptions,
filter?: TCopyFilterFn
Expand Down

0 comments on commit 5446492

Please sign in to comment.