Skip to content

Commit 6dd26ea

Browse files
authored
fix: copyfiles JS API options argument should be optional, fixes #49 (#50)
1 parent 0d32bd4 commit 6dd26ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function displayStatWhenEnabled(options: CopyFileOptions, count: number) {
110110
* @param {CopyFileOptions} options - CLI options
111111
* @param {(e?: Error) => void} callback - optionally callback that will be executed after copy is finished or when an error occurs
112112
*/
113-
export function copyfiles(paths: string[], options: CopyFileOptions, callback?: (e?: Error) => void) {
113+
export function copyfiles(paths: string[], options: CopyFileOptions = {}, callback?: (e?: Error) => void) {
114114
const cb = callback || options.callback;
115115

116116
if (options.verbose || options.stat) {

0 commit comments

Comments
 (0)