-
-
Notifications
You must be signed in to change notification settings - Fork 185
feat: implement typed Input/Output interface for resolvers #753
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
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
cf569f3
feat: implement typed Input/Output interface for resolvers
jorisre 14d8095
docs: write some docs
jorisre b82fd2f
WIP
jorisre 1a4e0d2
doc: update
jorisre c0a1dbe
test: update
jorisre d3aa26b
try to handle option
jorisre 06f3b08
fix: applied @controversial's suggested modifications
jorisre d32ab27
feat: yup type inference
jorisre 9841f67
refactor: zod tests
jorisre f2f0b0b
chore: move @standard-schema/utils deps to subpackage
jorisre 35e029d
chore: use RHF RC version
jorisre 9ccbee3
chore: bump RHF version
jorisre a6b75c3
feat(vine): infer types from resolver
jorisre a091583
feat(valibot): type inference
jorisre cfcafe2
feat(typanion): types inference
jorisre 0c137d3
feat(superstruct): type inference
jorisre 4e40368
feat(standardSchema): type inference
jorisre 882dac9
feat(io-ts): type inference
jorisre 157d110
feat(effect-ts): type inference
jorisre c0fdb95
feat(computed-types): type inference
jorisre c6da66a
feat(arktype): type inference
jorisre bf30971
chore: clean
jorisre b49bc81
feat(typebox): type inference
jorisre a45a85e
typeschema
jorisre d441f34
fix(typebox): improve type interface (#757)
kotarella1110 8424fa4
chore: bump RHF
jorisre c4793f8
ci: temp fix compressed size
jorisre 236bdde
chore: update bun.lock
jorisre c7378e5
chore: use RHF 7.55.0
jorisre f403f32
chore: reg bun.lock
jorisre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we switch from
arktype
native implementation tostandard-schema
? And why not all standard-schema-compatible resolvers follow this approach?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, using this approach will lead to the resolver failing to infer the type from the schema, unless the user specifically installs
@standard-schema/spec
as their dependencyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apologize for mentioning you guys @jorisre @bluebill1049 @kotarella1110
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We switched to standard-schema from the native arktype implementation because type inference in Arktype wasn't working as expected. But if you've found a solid solution, we're happy to review a PR :)