diff --git a/.changes/api-fs-exists-return-type.md b/.changes/api-fs-exists-return-type.md new file mode 100644 index 000000000..f34b1ff3a --- /dev/null +++ b/.changes/api-fs-exists-return-type.md @@ -0,0 +1,5 @@ +--- +"api": patch +--- + +Fix incorrect return type on `fs/exists` diff --git a/tooling/api/src/fs.ts b/tooling/api/src/fs.ts index 300e81949..ba889b435 100644 --- a/tooling/api/src/fs.ts +++ b/tooling/api/src/fs.ts @@ -569,7 +569,7 @@ async function renameFile( * * @since 1.1.0 */ -async function exists(path: string, options: FsOptions = {}): Promise { +async function exists(path: string, options: FsOptions = {}): Promise { return invokeTauriCommand({ __tauriModule: 'Fs', message: {