[typescript-operations] Add warning for internal utility types#10643
Merged
eddeee888 merged 4 commits intomaster-nextfrom Mar 12, 2026
Merged
[typescript-operations] Add warning for internal utility types#10643eddeee888 merged 4 commits intomaster-nextfrom
eddeee888 merged 4 commits intomaster-nextfrom
Conversation
🦋 Changeset detectedLatest commit: 4dc71eb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-codegen/cli |
7.0.0-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/introspection |
5.0.2-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/visitor-plugin-common |
7.0.0-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
5.0.10-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
5.1.5-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
6.0.0-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
6.0.0-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
6.1.8-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
6.0.0-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
6.0.0-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
5.1.5-alpha-20260312134304-4dc71eb28e50c83ef2abd041c13c5bd2cdf85cd4 |
npm ↗︎ unpkg ↗︎ |
10 tasks
eddeee888
added a commit
that referenced
this pull request
Mar 19, 2026
* Add internal utility type warning * Update snapshots * Add changeset * Improve internal type message
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
In the past, users usually use exported types from generated files. These types include full schema types (that shouldn't be used in operations), or internal utility types (Such as
IncrementalandExact)We already got rid of the full schema object types because they would never be used.
However, internal utility types could be exported to be shared in generated files, so there's no way to stop users from using these types.
This PR adds a warning to deter users from using internal utility types, as these can change any time.
Related
Type of change
How Has This Been Tested?