@graphql-codegen/plugin-helpers 2.5.0-alpha-2ada7b533.0 → 2.6.0-alpha-33d33bf6b.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-2ada7b533.0",
3
+ "version": "2.6.0-alpha-33d33bf6b.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 {};
@@ -405,6 +405,10 @@ export declare namespace Types {
405
405
  * @description A flag to suppress non-zero exit code when there are no documents to generate.
406
406
  */
407
407
  ignoreNoDocuments?: boolean;
408
+ /**
409
+ * @description A flag to disable adding `.js` extension to the output file. Default: `true`.
410
+ */
411
+ emitLegacyCommonJSImports?: boolean;
408
412
  /**
409
413
  * @description A flag to suppress printing errors when they occur.
410
414
  */