Skip to content

add generic type support for pval.shape - #88

Merged
koculu merged 1 commit into
mainfrom
pval-shape-generic-type
Apr 6, 2026
Merged

koculu merged 1 commit into
mainfrom
pval-shape-generic-type

Conversation

@koculu

@koculu koculu commented Apr 6, 2026

Copy link
Copy Markdown
Member

Summary

Adds generic pval.shape<T>(...) support for better TypeScript authoring.

This keeps the existing inferred shape(...) behavior, while also allowing explicit type/interface/class-driven schemas with prop-key IntelliSense and optional subset validation. It also includes a test demonstrating the new generic form.

@koculu
koculu merged commit 0fd3bee into main Apr 6, 2026
@koculu
koculu deleted the pval-shape-generic-type branch April 6, 2026 01:59
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