Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider leveraging JetBrains/kotlin-wrappers library #721

Closed
twyatt opened this issue Jul 26, 2024 · 1 comment
Closed

Consider leveraging JetBrains/kotlin-wrappers library #721

twyatt opened this issue Jul 26, 2024 · 1 comment
Milestone

Comments

@twyatt
Copy link
Member

twyatt commented Jul 26, 2024

JetBrains/kotlin-wrappers can provide types such as DOMException, for example:

/* Throws `DOMException` if connection is closed:
*
* DOMException: Failed to execute 'stopNotifications' on 'BluetoothRemoteGATTCharacteristic':
* Characteristic with UUID [...] is no longer valid. Remember to retrieve the characteristic
* again after reconnecting.
*
* Wrapped in `runCatching` to silently ignore failure, as notification will already be
* invalidated due to the connection being closed.
*/

@twyatt
Copy link
Member Author

twyatt commented Oct 2, 2024

Closing as #749 extensively leverages kotlin-wrappers and it will continue to be used for future JavaScript changes.

@twyatt twyatt closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant