We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6024005 commit 80a0f53Copy full SHA for 80a0f53
src/myzod/index.ts
@@ -92,14 +92,7 @@ export class MyZodSchemaVisitor extends BaseSchemaVisitor {
92
.export()
93
.asKind('function')
94
.withName(`${name}Schema(): myzod.Type<${name}>`)
95
- .withBlock(
96
- [
97
- indent(`return myzod.object({`),
98
- indent(`__typename: myzod.literal('${node.name.value}').optional(),`, 2),
99
- shape,
100
- indent('})'),
101
- ].join('\n')
102
- ).string + appendArguments
+ .withBlock([indent(`return myzod.object({`), shape, indent('})')].join('\n')).string + appendArguments
103
);
104
}
105
}),
0 commit comments