mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
fix: force optional options (#6817)
This commit is contained in:
parent
008f781d42
commit
698a2ed962
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ export function outputFile(
|
||||||
data: any,
|
data: any,
|
||||||
options?: WriteFileOptions | string
|
options?: WriteFileOptions | string
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return fs.outputFile(file, data, options);
|
return fs.outputFile(file, data, options ?? {});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function remove(dir: string): Promise<void> {
|
export function remove(dir: string): Promise<void> {
|
||||||
|
@ -68,5 +68,5 @@ export function move(
|
||||||
dest: string,
|
dest: string,
|
||||||
options?: MoveOptions
|
options?: MoveOptions
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return fs.move(src, dest, options);
|
return fs.move(src, dest, options ?? {});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue