mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(api): fs/exists return type previously set to void when it should be boolean (#5252)
This commit is contained in:
5
.changes/api-fs-exists-return-type.md
Normal file
5
.changes/api-fs-exists-return-type.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"api": patch
|
||||
---
|
||||
|
||||
Fix incorrect return type on `fs/exists`
|
||||
@@ -569,7 +569,7 @@ async function renameFile(
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
async function exists(path: string, options: FsOptions = {}): Promise<void> {
|
||||
async function exists(path: string, options: FsOptions = {}): Promise<boolean> {
|
||||
return invokeTauriCommand({
|
||||
__tauriModule: 'Fs',
|
||||
message: {
|
||||
|
||||
Reference in New Issue
Block a user