Skip to content

Commit

Permalink
fix(api): fs/exists return type previously set to void when it should…
Browse files Browse the repository at this point in the history
… be boolean (#5252)
  • Loading branch information
keraf authored Sep 29, 2022
1 parent 0d3a97e commit ca3cd8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/api-fs-exists-return-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"api": patch
---

Fix incorrect return type on `fs/exists`
2 changes: 1 addition & 1 deletion tooling/api/src/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ca3cd8b

Please sign in to comment.