@graphql-codegen/plugin-helpers 2.3.2 → 2.3.3-alpha-6cdbcf02e.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/plugin-helpers",
3
- "version": "2.3.2",
3
+ "version": "2.3.3-alpha-6cdbcf02e.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"
package/types.d.ts CHANGED
@@ -180,7 +180,11 @@ export declare namespace Types {
180
180
  interface CustomDocumentLoader {
181
181
  [path: string]: CustomDocumentLoaderOptions;
182
182
  }
183
- type OperationDocument = OperationDocumentGlobPath | CustomDocumentLoader;
183
+ interface CustomDocumentRequire {
184
+ require: string;
185
+ config: object;
186
+ }
187
+ type OperationDocument = OperationDocumentGlobPath | CustomDocumentLoader | CustomDocumentRequire;
184
188
  type PluginConfig<T = any> = {
185
189
  [key: string]: T;
186
190
  };