mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
fix(fs): make rename third parameter optional (#962)
* Fix rename option can't be empty * change file
This commit is contained in:
@@ -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(
|
async function rename(
|
||||||
oldPath: string | URL,
|
oldPath: string | URL,
|
||||||
newPath: string | URL,
|
newPath: string | URL,
|
||||||
options: RenameOptions,
|
options?: RenameOptions,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (
|
if (
|
||||||
(oldPath instanceof URL && oldPath.protocol !== "file:") ||
|
(oldPath instanceof URL && oldPath.protocol !== "file:") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user