diff --git a/docs/source/development-testing/static-typing.md b/docs/source/development-testing/static-typing.md index 76cc9a4e37a..6cc73457027 100644 --- a/docs/source/development-testing/static-typing.md +++ b/docs/source/development-testing/static-typing.md @@ -26,7 +26,8 @@ import { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema: '', - documents: ['src/**/*.tsx'], + // this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure + documents: ['src/**/*.{ts,tsx}'], generates: { './src/__generated__/': { preset: 'client',