Skip to content

Commit 9fc6531

Browse files
feat: add codegen options to client type generation for improved type safety (#11)
1 parent 73c5227 commit 9fc6531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/server-type-generation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function clientTypeGeneration(
6060
const graphqlString = readFileSync(schemaFilePath, 'utf-8')
6161
const schema = buildSchema(graphqlString)
6262

63-
const types = await generateClientTypes(schema, loadDocs)
63+
const types = await generateClientTypes(schema, loadDocs, nitro.options.graphql?.codegen?.client ?? {})
6464
if (types === false) {
6565
return
6666
}

0 commit comments

Comments
 (0)