{"library":"codegen-typescript-graphql-module-declarations-plugin","type":"library","category":null,"description":"This `graphql-code-generator` plugin enhances the standard `@graphql-codegen/typescript-graphql-files-modules` plugin by generating TypeScript module declarations for `.graphql` files, but critically, it produces *typed* `DocumentNode` objects. This typing leverages the output of the `@graphql-codegen/typed-document-node` plugin, ensuring type-safety and auto-completion when importing GraphQL operations (queries, mutations, subscriptions) directly from `.graphql` files into your TypeScript codebase. It currently stands at version `1.0.3` and shows a stable release cadence with dependency updates and minor bug fixes. Key differentiators include its focus on generating fully typed `DocumentNode` definitions for imported GraphQL files, allowing for robust type-checking at compile time, which is not directly provided by `graphql-tag/loader` alone without this intermediary type generation. It also supports `.graphql` files with multiple operations, naming imports according to the operation names, enhancing code organization and readability.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","codegen","graphql","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install codegen-typescript-graphql-module-declarations-plugin","imports":["# codegen.yml\nplugins:\n  - codegen-typescript-graphql-module-declarations-plugin","import { MyQuery } from './my-query.graphql';","import UserFields from './my-fragment.graphql';"]},{"cmd":"yarn add codegen-typescript-graphql-module-declarations-plugin","imports":[]},{"cmd":"pnpm add codegen-typescript-graphql-module-declarations-plugin","imports":[]}],"homepage":null,"github":"https://github.com/niieani/codegen-typescript-graphql-module-declarations-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/codegen-typescript-graphql-module-declarations-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/codegen-typescript-graphql-module-declarations-plugin/compatibility"}}