dotansimha / graphql-code-generator

A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
https://the-guild.dev/graphql/codegen/
MIT License
10.72k stars 1.31k forks source link

[plugin/add] Cannot import config type #9986

Closed taro-28 closed 3 weeks ago

taro-28 commented 1 month ago

Is your feature request related to a problem? Please describe.

Unlike other plugins, @graphql-codegen/add cannot import config type, making it difficult to write configuration type-safe.

Describe the solution you'd like

Enable import of config types from @graphql-codegen/add as follows.

import type { AddPluginConfig } from '@graphql-codegen/add'

Describe alternatives you've considered

No response

Is your feature request related to a problem? Please describe.

No response

eddeee888 commented 3 weeks ago

Thank you for implementing this feature @taro-28 !

This is released in @graphql-codegen/add@5.0.3