Skip to content

Add built-in pval.or(...validators) - #86

Merged
koculu merged 1 commit into
mainfrom
built-in-or-prop-validator
Apr 6, 2026
Merged

koculu merged 1 commit into
mainfrom
built-in-or-prop-validator

Conversation

@koculu

@koculu koculu commented Apr 6, 2026

Copy link
Copy Markdown
Member

Summary

Adds built-in pval.or(...validators) support for union-style prop validation.

This lets component authors express runtime contracts like string-or-number without writing custom validators, while keeping error messages consistent with the rest of pval. The change also includes tests and documentation updates for the new helper.

@koculu
koculu merged commit 2c93147 into main Apr 6, 2026
1 check passed
@koculu
koculu deleted the built-in-or-prop-validator branch April 6, 2026 00:40
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