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

Add more assertion utils #49

Merged
merged 2 commits into from
Nov 2, 2022
Merged

Add more assertion utils #49

merged 2 commits into from
Nov 2, 2022

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Nov 2, 2022

This adds a util function for asserting values against Superstruct structs. It removes some of the boilerplate we had before, and allows for custom error prefixes and error classes.

@Mrtenz Mrtenz marked this pull request as ready for review November 2, 2022 09:39
@Mrtenz Mrtenz requested a review from a team as a code owner November 2, 2022 09:39
@Mrtenz Mrtenz merged commit 182509a into main Nov 2, 2022
@Mrtenz Mrtenz deleted the mrtenz/assert-struct branch November 2, 2022 10:18
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.

2 participants