beerpong-elo/web/codegen.ts

20 lines
356 B
TypeScript
Raw Normal View History

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