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

chore: use satisfies over assertUnreachable #7627

Closed
wants to merge 2 commits into from

Conversation

0xApotheosis
Copy link
Contributor

Description

We can replace our assertUnreachable util with native TS via the satisfies operator.
This PR does just that.

Ref: https://stackoverflow.com/a/75217377/5623388 and https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator

Issue (if applicable)

N/A, developer experience.

Risk

High Risk PRs Require 2 approvals

Small - only type-level changes.

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None

Testing

App should build as normal, with no errors.

Engineering

☝️

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

General smoke test.

Screenshots (if applicable)

N/A

@0xApotheosis
Copy link
Contributor Author

Closing this (unfortunately) as I can't resolve the webpack/babel issues, even though TS is happy:

Screenshot 2024-08-28 at 11 51 35 AM

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.

1 participant