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

Improve safety + autocomplete for @arktype/schema definitions #940

Open
ssalbdivad opened this issue May 2, 2024 · 0 comments
Open

Improve safety + autocomplete for @arktype/schema definitions #940

ssalbdivad opened this issue May 2, 2024 · 0 comments

Comments

@ssalbdivad
Copy link
Member

There is currently a validateSchema type but generally we just accept a SchemaDef in most places, which accept extra keys and doesn't e.g. narrow constraints based on basis type.

We should standardize these APIs to use the validateSchema approach to avoid extra keys and give more precise hints about what is allowed based on an intersection basis, ideally also reintegrating some of the commented test cases for e.g. prop and tuple inference which is not handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant