Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add noSilentErrors option to the config type #9523

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/utils/plugins-helpers/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ export namespace Types {
* For more details: https://graphql-code-generator.com/docs/config-reference/lifecycle-hooks
*/
hooks?: Partial<LifecycleHooksDefinition>;
/**
* @description Alows to raise errors if any matched files are not valid GraphQL. Default: false.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*/
noSilentErrors?: boolean;
}

export type ComplexPluginOutput = { content: string; prepend?: string[]; append?: string[] };
Expand Down
4 changes: 4 additions & 0 deletions website/public/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
"hooks": {
"$ref": "#/definitions/Partial",
"description": "Specifies scripts to run when events are happening in the codegen core.\nHooks defined on that level will effect all output files.\n\nFor more details: https://graphql-code-generator.com/docs/config-reference/lifecycle-hooks"
},
"noSilentErrors": {
"description": "Alows to raise errors if any matched files are not valid GraphQL. Default: false.",
"type": "boolean"
}
}
},
Expand Down