beerpong-elo/web/codegen.ts
2025-01-09 16:01:41 +01:00

20 lines
356 B
TypeScript

import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
overwrite: true,
schema: "http://localhost:8080/graphql",
documents: "./src/**/*.svelte",
generates: {
"src/gql/": {
preset: "client",
plugins: [],
config:{
useTypeImports: true,
},
}
}
};
export default config;