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

Support custom assertion messages #204

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

marlun78
Copy link
Contributor

Adds support for custom assertion messages. Unfortunately, the variadic functions assertAll & assertAny cannot accept a message without a breaking change.

Closes #144.

Unfortunately, the variadic functions `assertAll` & `assertAny` cannot have a custom assertion message without a breaking change.
@sindresorhus
Copy link
Owner

Can you add an example using the message parameter here:

is/readme.md

Line 46 in 664b907

```
Just to make it obvious to non-TS users that it's supported.

@sindresorhus sindresorhus merged commit f2e5834 into sindresorhus:main Apr 23, 2024
1 check passed
@sindresorhus
Copy link
Owner

Thanks :)

@0x80
Copy link

0x80 commented Apr 23, 2024

Thanks a for adding this!

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.

Custom error messages
3 participants