-
Notifications
You must be signed in to change notification settings - Fork 288
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
Add GraphQL client type utilities to hydrogen-codegen #1584
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0327165
Extract type codegen utilities from Storefront Client
frandiox 5fc1726
Move codegen type utilities to hydrogen-codegen package
frandiox 22ba6b4
Changesets
frandiox e203014
Rename type
frandiox d90e76c
Make rest parameter optional only if other properties are not required
frandiox 7cabd87
Fix ClientReturn
frandiox d471849
Fix issues with optional variables
frandiox 0633b11
Use GenericVariables
frandiox 2edc04e
Fix variables
frandiox b5ac9ca
Add tests for client types
frandiox 27e4b39
Merge branch 'main' into fd-codegen-client-type-refactor
frandiox 07ed67c
Run type tests properly in Vitest v1
frandiox 764ef2a
Simplify types and add comments
frandiox 6c507c9
Simplify types in storefront client
frandiox 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
Changesets
- Loading branch information
commit 22ba6b41ed8397f1e14133f3bbc1fb14301fe0e1
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/hydrogen-codegen': minor | ||
--- | ||
|
||
Export type utilities to create GraphQL clients that can consume the types generated by this package. |
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.
patch
?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.
It's OK to have
minor
in hydrogen-codegen. Since this is a new feature, it should be minor I think?