@graphql-codegen/plugin-helpers 4.1.0-alpha-20230217153118-8e7a4a5bc → 4.1.0-alpha-20230217154333-d17414c80

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": "4.1.0-alpha-20230217153118-8e7a4a5bc",
3
+ "version": "4.1.0-alpha-20230217154333-d17414c80",
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"
@@ -1,7 +1,7 @@
1
1
  import { ASTNode, visit } from 'graphql';
2
- declare type VisitFn = typeof visit;
3
- declare type NewVisitor = Partial<Parameters<VisitFn>[1]>;
4
- declare type OldVisitor = {
2
+ type VisitFn = typeof visit;
3
+ type NewVisitor = Partial<Parameters<VisitFn>[1]>;
4
+ type OldVisitor = {
5
5
  enter?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['enter']>>;
6
6
  leave?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['leave']>>;
7
7
  } & NewVisitor;
@@ -1,7 +1,7 @@
1
1
  import { ASTNode, visit } from 'graphql';
2
- declare type VisitFn = typeof visit;
3
- declare type NewVisitor = Partial<Parameters<VisitFn>[1]>;
4
- declare type OldVisitor = {
2
+ type VisitFn = typeof visit;
3
+ type NewVisitor = Partial<Parameters<VisitFn>[1]>;
4
+ type OldVisitor = {
5
5
  enter?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['enter']>>;
6
6
  leave?: Partial<Record<keyof NewVisitor, NonNullable<NewVisitor[keyof NewVisitor]>['leave']>>;
7
7
  } & NewVisitor;
@@ -565,7 +565,7 @@ export declare namespace Types {
565
565
  } | boolean;
566
566
  }
567
567
  export declare function isComplexPluginOutput(obj: Types.PluginOutput): obj is Types.ComplexPluginOutput;
568
- export declare type PluginFunction<T = any, TOutput extends Types.PluginOutput = Types.PluginOutput> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, info?: {
568
+ export type PluginFunction<T = any, TOutput extends Types.PluginOutput = Types.PluginOutput> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, info?: {
569
569
  outputFile?: string;
570
570
  allPlugins?: Types.ConfiguredPlugin[];
571
571
  pluginContext?: {
@@ -573,10 +573,10 @@ export declare type PluginFunction<T = any, TOutput extends Types.PluginOutput =
573
573
  };
574
574
  [key: string]: any;
575
575
  }) => Types.Promisable<TOutput>;
576
- export declare type PluginValidateFn<T = any> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, outputFile: string, allPlugins: Types.ConfiguredPlugin[], pluginContext?: {
576
+ export type PluginValidateFn<T = any> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, outputFile: string, allPlugins: Types.ConfiguredPlugin[], pluginContext?: {
577
577
  [key: string]: any;
578
578
  }) => Types.Promisable<void>;
579
- export declare type AddToSchemaResult = string | DocumentNode | undefined;
579
+ export type AddToSchemaResult = string | DocumentNode | undefined;
580
580
  export interface CodegenPlugin<T = any> {
581
581
  plugin: PluginFunction<T>;
582
582
  addToSchema?: AddToSchemaResult | ((config: T) => AddToSchemaResult);
@@ -565,7 +565,7 @@ export declare namespace Types {
565
565
  } | boolean;
566
566
  }
567
567
  export declare function isComplexPluginOutput(obj: Types.PluginOutput): obj is Types.ComplexPluginOutput;
568
- export declare type PluginFunction<T = any, TOutput extends Types.PluginOutput = Types.PluginOutput> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, info?: {
568
+ export type PluginFunction<T = any, TOutput extends Types.PluginOutput = Types.PluginOutput> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, info?: {
569
569
  outputFile?: string;
570
570
  allPlugins?: Types.ConfiguredPlugin[];
571
571
  pluginContext?: {
@@ -573,10 +573,10 @@ export declare type PluginFunction<T = any, TOutput extends Types.PluginOutput =
573
573
  };
574
574
  [key: string]: any;
575
575
  }) => Types.Promisable<TOutput>;
576
- export declare type PluginValidateFn<T = any> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, outputFile: string, allPlugins: Types.ConfiguredPlugin[], pluginContext?: {
576
+ export type PluginValidateFn<T = any> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, outputFile: string, allPlugins: Types.ConfiguredPlugin[], pluginContext?: {
577
577
  [key: string]: any;
578
578
  }) => Types.Promisable<void>;
579
- export declare type AddToSchemaResult = string | DocumentNode | undefined;
579
+ export type AddToSchemaResult = string | DocumentNode | undefined;
580
580
  export interface CodegenPlugin<T = any> {
581
581
  plugin: PluginFunction<T>;
582
582
  addToSchema?: AddToSchemaResult | ((config: T) => AddToSchemaResult);