Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Mar 1, 2024

I made a few small mistakes in #4, causing the tests to break. This fixes it.

Blocked by #5.

for (const { validate } of Structs) {
const [error, coerced] = validate(value, { coerce: true });
for (const InnerStruct of Structs) {
const [error, coerced] = InnerStruct.validate(value, { coerce: true });
Copy link
Member Author

Choose a reason for hiding this comment

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

This was broken because Struct.validate references this.

Base automatically changed from mrtenz/tsup to main March 1, 2024 17:59
@Mrtenz Mrtenz force-pushed the mrtenz/fix-tests branch from 3239cda to f3723d1 Compare March 1, 2024 20:47
@Mrtenz Mrtenz marked this pull request as ready for review March 1, 2024 20:48
@Mrtenz Mrtenz requested a review from a team March 1, 2024 20:48
Copy link

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Looks good!

@Mrtenz Mrtenz merged commit 734f725 into main Mar 1, 2024
@Mrtenz Mrtenz deleted the mrtenz/fix-tests branch March 1, 2024 22:21
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.

3 participants