-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
coreRelated to codegen core/cliRelated to codegen core/cli
Description
Describe the bug
The current types definition of config is as follows left side:
This is incorrect and differs from the document.
Your Example Website or App
none
Steps to Reproduce the Bug or Issue
- create a
codegen.ts
config. - import the
CodegenConfig
types from@graphql-codegen/cli
- check the
pluckConfig
types
Expected behavior
should get correct types of pluckConfig
Screenshots or Videos
No response
Platform
- "@graphql-codegen/cli": "2.13.11"
Codegen Config File
import { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
pluckConfig: {
magicComment: 'GraphQL',
// ^? incorrect type, should be `gqlMagicComment`
globalIdentifier: 'gql',
// ^? incorrect type, should be `globalGqlIdentifierName`
},
}
Additional context
If you are all good, I can create a PR for fixing this.
johnson-liang-appier, emily-yn-chen-appier and pokai-chang-appierjohnson-liang-appier
Metadata
Metadata
Assignees
Labels
coreRelated to codegen core/cliRelated to codegen core/cli