Skip to content

Commit

Permalink
Remove init from overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanduplenskikh committed Dec 25, 2024
1 parent d5bf33e commit c79f239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,8 @@ function retryer(func: Function, retryCount: number = 0, continueOnError: boolea
* @param {boolean} [continueOnError] - Optional. whether to continue on error.
* @param {number} [retryCount=0] - Optional. Retry count to copy the file. It might help to resolve intermittent issues e.g. with UNC target paths on a remote host.
*/
export function cp(source: string, destination: string, options?: string, continueOnError?: boolean, retryCount: number = 0): void;
export function cp(options: string, source: string, destination: string, continueOnError?: boolean, retryCount: number = 0): void;
export function cp(source: string, destination: string, options?: string, continueOnError?: boolean, retryCount?: number): void;
export function cp(options: string, source: string, destination: string, continueOnError?: boolean, retryCount?: number): void;

export function cp(sourceOrOptions: string, destinationOrSource: string, optionsOrDestination: string, continueOnError?: boolean, retryCount: number = 0): void {
retryer(() => {
Expand Down

0 comments on commit c79f239

Please sign in to comment.