Closed tombohub closed 1 year ago
No response
'you say in documentation that data is typed but it's not
https://github.com/dotansimha/graphql-code-generator/tree/master/examples/react/urql
download example install packages yarn check the code
yarn
data to be typed with proper type, not any
any
graphql
@graphql-codegen/cli
/* eslint-disable import/no-extraneous-dependencies */ import { type CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema: 'https://swapi-graphql.netlify.app/.netlify/functions/index', documents: ['src/**/*.tsx', '!src/gql/**/*'], generates: { './src/gql/': { preset: 'client', }, }, hooks: { afterAllFileWrite: ['prettier --write'] }, }; export default config;
Works fine on a freshly cloned repo after installing dependencies.
You can try restarting your TS server in VSCode.
Which packages are impacted by your issue?
No response
Describe the bug
'you say in documentation that data is typed but it's not
Your Example Website or App
https://github.com/dotansimha/graphql-code-generator/tree/master/examples/react/urql
Steps to Reproduce the Bug or Issue
download example install packages
yarn
check the codeExpected behavior
data to be typed with proper type, not
any
Screenshots or Videos
No response
Platform
graphql
not installed@graphql-codegen/cli
version: ^3.0.0Codegen Config File
Additional context
No response