@graphql-codegen/plugin-helpers 2.5.0-alpha-bd464a586.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/plugin-helpers",
3
- "version": "2.5.0-alpha-bd464a586.0",
3
+ "version": "2.5.0",
4
4
  "description": "GraphQL Code Generator common utils and types",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
@@ -2,8 +2,8 @@ import { ASTNode, visit } from 'graphql';
2
2
  declare type VisitFn = typeof visit;
3
3
  declare type NewVisitor = Partial<Parameters<VisitFn>[1]>;
4
4
  declare type OldVisitor = {
5
- enter?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['enter']>>;
6
- leave?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['leave']>>;
5
+ enter?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['enter']>>;
6
+ leave?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['leave']>>;
7
7
  } & NewVisitor;
8
8
  export declare function oldVisit(root: ASTNode, { enter: enterVisitors, leave: leaveVisitors, ...newVisitor }: OldVisitor): any;
9
9
  export {};
@@ -401,6 +401,10 @@ export declare namespace Types {
401
401
  usePolling: boolean;
402
402
  interval?: number;
403
403
  };
404
+ /**
405
+ * @description A flag to suppress non-zero exit code when there are no documents to generate.
406
+ */
407
+ ignoreNoDocuments?: boolean;
404
408
  /**
405
409
  * @description A flag to suppress printing errors when they occur.
406
410
  */