ardeois / graphql-codegen-typescript-mock-data

[GraphQL Codegen Plugin](https://github.com/dotansimha/graphql-code-generator) for building mock data based on the schema.
MIT License
134 stars 46 forks source link

feat(config): add import type support #148

Closed shaun-sweet closed 10 months ago

shaun-sweet commented 10 months ago

Hello! I didn't see any contribution guidelines so I am just posting this in the hopes we can get this merged. This adds support for this typescript compiler option

Let me know what needs to be done to get this merged! Thanks

shaun-sweet commented 10 months ago

You bet

shaun-sweet commented 10 months ago

Done! I copied the naming convention and docs from other GQL plugins as well folks can use the top level config that shares across all the plugins :) thanks for the speedy reply!

hnrq commented 10 months ago

Is there a way to keep importing enums as values instead of types?

shaun-sweet commented 7 months ago

Is there a way to keep importing enums as values instead of types?

Yes https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-mock-data#useimplementingtypes-boolean-defaultvalue-false