Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51ba4c5

Browse files
fix(fs): make rename third parameter optional (#962)
* Fix rename option can't be empty * change file
1 parent 9b49f0a commit 51ba4c5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fs-js": patch
3+
---
4+
5+
Make `rename` function third paramter optional as it was supposed to be.

plugins/fs/guest-js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ interface RenameOptions {
853853
async function rename(
854854
oldPath: string | URL,
855855
newPath: string | URL,
856-
options: RenameOptions,
856+
options?: RenameOptions,
857857
): Promise<void> {
858858
if (
859859
(oldPath instanceof URL && oldPath.protocol !== "file:") ||

0 commit comments

Comments
 (0)