mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-20 23:11:24 +02:00
fix(fs): make rename third parameter optional (#962)
* Fix rename option can't be empty * change file
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -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:") ||
|
||||
|
||||
Reference in new issue
Block a user