Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function displayStatWhenEnabled(options: CopyFileOptions, count: number) {
* @param {CopyFileOptions} options - CLI options
* @param {(e?: Error) => void} callback - optionally callback that will be executed after copy is finished or when an error occurs
*/
export function copyfiles(paths: string[], options: CopyFileOptions, callback?: (e?: Error) => void) {
export function copyfiles(paths: string[], options: CopyFileOptions = {}, callback?: (e?: Error) => void) {
const cb = callback || options.callback;

if (options.verbose || options.stat) {
Expand Down