Deprecated template plugin for GraphQL Code Generator v0.x that generates TypeScript types for client-side and server-side GraphQL operations. Superseded by @graphql-codegen/typescript (client types) and @graphql-codegen/typescript-operations (operations) in v1.0.0+. Last version 0.18.2, now archived. Use modern plugins from @graphql-codegen/cli v1+ for current GraphQL schema support.
npm install graphql-codegen-typescript-commonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up GraphQL Code Generator v0.18 with deprecated TypeScript common template to generate types from schema and documents.
Replace with npm install @graphql-codegen/typescript @graphql-codegen/typescript-operations and update codegen.yml: plugins: ['typescript']
Migrate to @graphql-codegen/cli v1+ with modern plugins.
For v0: use 'template: typescript-common'. For v1: use 'plugins: ['typescript']'.
Ensure schema path points to valid .graphql file or introspection JSON. Check schema URL if using live endpoint.
Use the package in codegen.yml configuration, not in JS/TS imports. For runtime use, upgrade to v1 plugins.
npm install graphql-codegen-typescript-common@0.18.2 graphql-codegen-cli@0.18.2