TypeScript GraphQL Typed Files Modules

JSON →
library 0.2.1 ·javascript
verified Jun 7, 2026

A graphql-codegen plugin that generates TypeScript type definitions for .gql files using TypedDocumentNode, providing type-safe GraphQL documents. Current version 0.2.1, updated frequently. The plugin extends the standard typescript-graphql-files-modules by leveraging @graphql-typed-document-node/core to infer variables and data types for hooks like useQuery/useMutation, enhancing IDE support in VSCode. It requires graphql >=14.6.0 and @graphql-typed-document-node/core.