Open
Description
I'm using this plugin with https://the-guild.dev/graphql/config/docs. although the type causes TS error, it works:
error
Argument of type 'IGraphQLConfig' is not assignable to parameter of type 'Options | undefined'.
Type 'IGraphQLProject' has no properties in common with type 'Options'.ts(2345)
sample of graphql-config
import type { IGraphQLConfig } from "graphql-config";
const codegenConfig: IGraphQLConfig = {
schema,
documents: ["src/**/!(*.generated).{tsx,ts,graphql,gql}", "!src/sdk/**/*", "!node_modules"],
extensions: {
languageService: {
cacheSchemaFileForLookup: true,
},
codegen: {
overwrite: true,
watch: CODEGEN_WATCH === "true",
ignoreFieldConflicts: true,
generates: {
"src/sdk/gql/types.ts": {
config: {
...config,
},
plugins: [
"typescript",
],
},
"src/": {
preset: "near-operation-file",
presetConfig: {
extension: ".generated.ts",
baseTypesPath: "sdk/gql/types.ts",
},
plugins: [
"typescript-operations",
"typed-document-node",
{
add: {
content: `/* eslint-disable */`,
},
},
],
},
},
},
},
};
export default codegenConfig;