@graphql-codegen/plugin-helpers 7.1.0 → 7.2.0-alpha-20260819142612-e67b77fd858dd4b58f56ceda6a16331c3af57c9d

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": "7.1.0",
3
+ "version": "7.2.0-alpha-20260819142612-e67b77fd858dd4b58f56ceda6a16331c3af57c9d",
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 || ^17.0.0"
@@ -257,7 +257,7 @@ export declare namespace Types {
257
257
  *
258
258
  * For more details: https://graphql-code-generator.com/docs/config-reference/codegen-config
259
259
  */
260
- overwrite?: boolean;
260
+ overwrite?: boolean | Partial<NormalizedOverwriteOption>;
261
261
  /**
262
262
  * @description A pointer(s) to your GraphQL documents: query, mutation, subscription and fragment. These documents will be loaded into for all your output files.
263
263
  * You can use one of the following:
@@ -426,7 +426,7 @@ export declare namespace Types {
426
426
  *
427
427
  * For more details: https://graphql-code-generator.com/docs/config-reference/codegen-config
428
428
  */
429
- overwrite?: boolean;
429
+ overwrite?: boolean | Partial<NormalizedOverwriteOption>;
430
430
  /**
431
431
  * @description A flag to trigger codegen when there are changes in the specified GraphQL schemas.
432
432
  *
@@ -527,6 +527,10 @@ export declare namespace Types {
527
527
  */
528
528
  cwd?: string;
529
529
  }
530
+ type NormalizedOverwriteOption = {
531
+ removeStaleFiles: boolean;
532
+ updateExistingFiles: boolean;
533
+ };
530
534
  type ComplexPluginOutput<M = Record<string, unknown>> = {
531
535
  content: string;
532
536
  prepend?: string[];
@@ -257,7 +257,7 @@ export declare namespace Types {
257
257
  *
258
258
  * For more details: https://graphql-code-generator.com/docs/config-reference/codegen-config
259
259
  */
260
- overwrite?: boolean;
260
+ overwrite?: boolean | Partial<NormalizedOverwriteOption>;
261
261
  /**
262
262
  * @description A pointer(s) to your GraphQL documents: query, mutation, subscription and fragment. These documents will be loaded into for all your output files.
263
263
  * You can use one of the following:
@@ -426,7 +426,7 @@ export declare namespace Types {
426
426
  *
427
427
  * For more details: https://graphql-code-generator.com/docs/config-reference/codegen-config
428
428
  */
429
- overwrite?: boolean;
429
+ overwrite?: boolean | Partial<NormalizedOverwriteOption>;
430
430
  /**
431
431
  * @description A flag to trigger codegen when there are changes in the specified GraphQL schemas.
432
432
  *
@@ -527,6 +527,10 @@ export declare namespace Types {
527
527
  */
528
528
  cwd?: string;
529
529
  }
530
+ type NormalizedOverwriteOption = {
531
+ removeStaleFiles: boolean;
532
+ updateExistingFiles: boolean;
533
+ };
530
534
  type ComplexPluginOutput<M = Record<string, unknown>> = {
531
535
  content: string;
532
536
  prepend?: string[];