Skip to content

Commit 9f6ccb1

Browse files
authored
Update react-query.mdx (#10452)
added ts file ext to match the example. the query is written in the "index.ts" file. wo this the query in the example doesn't get the type correctly and ts doesn't compile correctly
1 parent 91c4bcd commit 9f6ccb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/docs/guides/react-query.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import type { CodegenConfig } from '@graphql-codegen/cli'
4545

4646
const config: CodegenConfig = {
4747
schema: 'https://graphql.org/graphql/',
48-
documents: ['src/**/*.tsx'],
48+
documents: ['src/**/*.{ts,tsx}'],
4949
ignoreNoDocuments: true,
5050
generates: {
5151
'./src/graphql/': {

0 commit comments

Comments
 (0)