fix(nfc): Resolve boolean in isAvailable to agree with TypeScript API (#3101)

Co-authored-by: Fabian-Lars <github@fabianlars.de>
This commit is contained in:
Ben ClarkeandFabian-Lars authored and GitHub committed 2025-11-13 20:38:15 +01:00
1 parent 3019063ae1
commit b4348cee92
2 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -269,5 +269,8 @@ export async function write(
}
export async function isAvailable(): Promise<boolean> {
return await invoke('plugin:nfc|is_available')
const { available }: { available: boolean } = await invoke(
'plugin:nfc|is_available'
)
return available
}