Skip to content

remove TypeScript assertion from prop-validation. - #84

Merged
koculu merged 1 commit into
mainfrom
remove-assertion-from-head.validateProps
Apr 5, 2026
Merged

koculu merged 1 commit into
mainfrom
remove-assertion-from-head.validateProps

Conversation

@koculu

@koculu koculu commented Apr 5, 2026

Copy link
Copy Markdown
Member

Summary

Simplifies head.validateProps(...) by removing its TypeScript assertion behavior.

Validation remains fully runtime-based and still follows the configured throw / warn / off behavior, but it no longer tries to narrow component prop types in TypeScript. This also includes documentation updates so the API is described consistently as a runtime validation tool.

@koculu
koculu merged commit ec4c391 into main Apr 5, 2026
@koculu
koculu deleted the remove-assertion-from-head.validateProps branch April 5, 2026 23:39
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