eddeee888 / graphql-code-generator-plugins

List of GraphQL Code Generator plugins that complements the official plugins.
MIT License
44 stars 10 forks source link

Utilise typescript typechecker to collect properties, instead of manual implementation #248

Closed eddeee888 closed 2 months ago

eddeee888 commented 2 months ago

Previously, we manually walked through the program to collect properties of types. This is problematic as there are lots of ways to declare mappers that we cannot manually handle. On top of this, type property properties can be handled natively correctly by TypeScript typechecker.

Note: class declaration private properties are picked up by TypeScript typechecker, which could be problematic. We are keeping that case as-is.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: ccc098707ce3a9d71b2dba98b6f95071bbc01b34

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------------------------- | ----- | | @eddeee888/gcg-typescript-resolver-files | Patch |

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

eddeee888 commented 2 months ago

/release-snapshot

github-actions[bot] commented 2 months ago

✅ Successfully published package/s with tag pr248-run448-1!