mirror of
https://github.com/schpet/linear-cli.git
synced 2026-09-14 14:26:50 +08:00
22 lines
421 B
TypeScript
22 lines
421 B
TypeScript
import type { CodegenConfig } from "@graphql-codegen/cli"
|
|
|
|
const config: CodegenConfig = {
|
|
schema: "graphql/schema.graphql",
|
|
documents: ["src/**/*.ts"],
|
|
generates: {
|
|
"src/__codegen__/": {
|
|
preset: "client",
|
|
plugins: [],
|
|
config: {
|
|
enumsAsTypes: true,
|
|
},
|
|
presetConfig: {
|
|
gqlTagName: "gql",
|
|
fragmentMasking: false,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
export default config
|