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 3f806e4 commit 8e68319Copy full SHA for 8e68319
src/config.ts
@@ -194,6 +194,24 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
194
* ```
195
*/
196
withObjectType?: boolean
197
+ /**
198
+ * @description Generates validation schema with GraphQL type interfaces.
199
+ *
200
+ * @exampleMarkdown
201
+ * ```yml
202
+ * generates:
203
+ * path/to/types.ts:
204
+ * plugins:
205
+ * - typescript
206
+ * path/to/schemas.ts:
207
208
+ * - graphql-codegen-validation-schema
209
+ * config:
210
+ * schema: yup
211
+ * withInterfaceType: true
212
+ * ```
213
+ */
214
+ withInterfaceType?: boolean;
215
/**
216
* @description Specify validation schema export type.
217
* @default function
0 commit comments