Skip to content

Commit ca3cd8b

Browse files
authored
fix(api): fs/exists return type previously set to void when it should be boolean (#5252)
1 parent 0d3a97e commit ca3cd8b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/api-fs-exists-return-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Fix incorrect return type on `fs/exists`

tooling/api/src/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ async function renameFile(
569569
*
570570
* @since 1.1.0
571571
*/
572-
async function exists(path: string, options: FsOptions = {}): Promise<void> {
572+
async function exists(path: string, options: FsOptions = {}): Promise<boolean> {
573573
return invokeTauriCommand({
574574
__tauriModule: 'Fs',
575575
message: {

0 commit comments

Comments
 (0)