1.0.0 • Published 2 years ago
codegen-typescript-typeguards v1.0.0
codegen-typescript-typeguards
This is a plugin for GraphQL Code Generator. It generates Typescript typeguards for all GraphQL types in the schema to simplify type-checking client-side.
It respects the typesPrefix
, typesSuffix
and namingConvention
of the Typescript plugin.
Usage example
Add this plugin
schema: ./src/schema/*.graphql
generates:
generated.ts:
plugins:
- typescript
- codegen-typescript-typeguards
1.0.0
2 years ago