Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b49f0a commit 51ba4c5Copy full SHA for 51ba4c5
2 files changed
.changes/fs-rename-optional-type.md
@@ -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
@@ -853,7 +853,7 @@ interface RenameOptions {
853
async function rename(
854
oldPath: string | URL,
855
newPath: string | URL,
856
- options: RenameOptions,
+ options?: RenameOptions,
857
): Promise<void> {
858
if (
859
(oldPath instanceof URL && oldPath.protocol !== "file:") ||
0 commit comments