@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 +1 -1
- package/typings/oldVisit.d.cts +3 -3
- package/typings/oldVisit.d.ts +3 -3
- package/typings/types.d.cts +3 -3
- package/typings/types.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/plugin-helpers",
|
|
3
|
-
"version": "4.1.0-alpha-
|
|
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"
|
package/typings/oldVisit.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ASTNode, visit } from 'graphql';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
package/typings/oldVisit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ASTNode, visit } from 'graphql';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
package/typings/types.d.cts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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);
|
package/typings/types.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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);
|