We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isAvailable
1 parent 3019063 commit b4348ceCopy full SHA for b4348ce
2 files changed
.changes/nfc-is-available-fix.md
@@ -0,0 +1,6 @@
1
+---
2
+"nfc": "patch"
3
+"nfc-js": "patch"
4
5
+
6
+Update return value of `isAvailable` to match TypeScript function signature
plugins/nfc/guest-js/index.ts
@@ -269,5 +269,8 @@ export async function write(
269
}
270
271
export async function isAvailable(): Promise<boolean> {
272
- return await invoke('plugin:nfc|is_available')
+ const { available }: { available: boolean } = await invoke(
273
+ 'plugin:nfc|is_available'
274
+ )
275
+ return available
276
0 commit comments