mirror of
https://github.com/opentripplanner/OpenTripPlanner.git
synced 2025-06-15 20:30:35 +02:00
18 lines
432 B
TypeScript
18 lines
432 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
schema: '../application/src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql',
|
|
documents: 'src/**/*.{ts,tsx}',
|
|
generates: {
|
|
'src/gql/': {
|
|
preset: 'client',
|
|
plugins: [],
|
|
},
|
|
'src/gql/types.generated.ts': {
|
|
plugins: ['typescript'],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|