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

* Fix rename option can't be empty

* change file
pull/972/head
Tony 1 year ago committed by GitHub
parent 9b49f0abf7
commit 51ba4c5330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"fs-js": patch
---
Make `rename` function third paramter optional as it was supposed to be.

@ -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:") ||

Loading…
Cancel
Save