-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove unused utility types and functions #10564
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
Remove unused utility types and functions #10564
Conversation
…s from typescript plugin because they were used for typescript-operations
2e802db to
590bbac
Compare
🦋 Changeset detectedLatest commit: 590bbac The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
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 |
| // will be removed on next release because tools already has it | ||
| export function getRootTypeNames(schema: GraphQLSchema): string[] { | ||
| return [schema.getQueryType(), schema.getMutationType(), schema.getSubscriptionType()] | ||
| .filter(t => t) | ||
| .map(t => t.name); | ||
| } |
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.
Driveby remove as nothing is using this
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-codegen/cli |
6.1.1-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/introspection |
5.0.1-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/visitor-plugin-common |
7.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
5.0.8-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
5.1.3-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
6.1.6-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
6.0.0-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
5.1.3-alpha-20260107125844-590bbacbf920ee5f5f207f26f318613d135b0cdb |
npm ↗︎ unpkg ↗︎ |
Description
This PR removes unused utitlity types from
typescriptplugin because they were only used intypescript-operationsMakeOptionalMakeMaybeMakeEmptyIncrementalNote:
MakeOptional,MakeMaybeandMakeEmptywere used in a code path that has been removed fromtypescript-operations, so we also don't add them there.Also: remove utility function
getRootTypeNamesas it's not used in this codebase directly and is availabel in@graphql-tools/utilsRelated #10496