fix(fs): make rename third parameter optional (#962)

* Fix rename option can't be empty

* change file
This commit is contained in:
Tony
2024-02-19 20:48:22 +08:00
committed by GitHub
parent 9b49f0abf7
commit 51ba4c5330
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fs-js": patch
---
Make `rename` function third paramter optional as it was supposed to be.
+1 -1
View File
@@ -853,7 +853,7 @@ interface RenameOptions {
async function rename(
oldPath: string | URL,
newPath: string | URL,
options: RenameOptions,
options?: RenameOptions,
): Promise<void> {
if (
(oldPath instanceof URL && oldPath.protocol !== "file:") ||