fix(api): fs/exists return type previously set to void when it should be boolean (#5252)

This commit is contained in:
Rafael Keramidas
2022-09-29 20:55:45 +02:00
committed by GitHub
parent 0d3a97ec7b
commit ca3cd8b3d1
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"api": patch
---
Fix incorrect return type on `fs/exists`

View File

@@ -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: {