We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d32bd4 commit 6dd26eaCopy full SHA for 6dd26ea
src/index.ts
@@ -110,7 +110,7 @@ function displayStatWhenEnabled(options: CopyFileOptions, count: number) {
110
* @param {CopyFileOptions} options - CLI options
111
* @param {(e?: Error) => void} callback - optionally callback that will be executed after copy is finished or when an error occurs
112
*/
113
-export function copyfiles(paths: string[], options: CopyFileOptions, callback?: (e?: Error) => void) {
+export function copyfiles(paths: string[], options: CopyFileOptions = {}, callback?: (e?: Error) => void) {
114
const cb = callback || options.callback;
115
116
if (options.verbose || options.stat) {
0 commit comments