We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d3a97e commit ca3cd8bCopy full SHA for ca3cd8b
.changes/api-fs-exists-return-type.md
@@ -0,0 +1,5 @@
1
+---
2
+"api": patch
3
4
+
5
+Fix incorrect return type on `fs/exists`
tooling/api/src/fs.ts
@@ -569,7 +569,7 @@ async function renameFile(
569
*
570
* @since 1.1.0
571
*/
572
-async function exists(path: string, options: FsOptions = {}): Promise<void> {
+async function exists(path: string, options: FsOptions = {}): Promise<boolean> {
573
return invokeTauriCommand({
574
__tauriModule: 'Fs',
575
message: {
0 commit comments