Skip to content

Conversation

@xplato
Copy link
Contributor

@xplato xplato commented Jun 28, 2023

Closes #239 • Should be good to merge after SDK updates, which are waiting on https://github.com/seamapi/seam-connect/issues/3455 (tests are expected to fail until then).


Arc 2023-06-27 at 19 41 43@2x

Copy link
Member

@razor-x razor-x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will approve when SDK update is in

@xplato xplato marked this pull request as ready for review June 28, 2023 18:29
@xplato xplato requested a review from mikewuu as a code owner June 28, 2023 18:29
const errorFilter = (
error: AccessCodeError | DeviceError | ConnectedAccountError
): boolean => {
if ('is_access_code_error' in error && !error.is_access_code_error)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. This makes me think we need to add type guards to the SDK for the different error types like we have for managed and unmanaged devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's a good idea!

@xplato xplato merged commit 71ad020 into main Jun 28, 2023
@xplato xplato deleted the add-access-code-errs-warns branch June 28, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<AccessCodeDetail - Add Errors & Warnings section

5 participants