Skip to content

gthau/codegen-typescript-typeguards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 configuration options of the Typescript plugin.

Usage example

Add this plugin to your config:

schema: ./src/schema/*.graphql
generates:
  generated.ts:
    plugins:
      - typescript
      - codegen-typescript-typeguards

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published