@graphql-codegen/plugin-helpers 2.4.0 → 2.4.2-alpha-714e0efe9.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 +1 -1
- 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.4.0",
|
|
3
|
+
"version": "2.4.2-alpha-714e0efe9.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
|
@@ -19,6 +19,7 @@ export declare namespace Types {
|
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
};
|
|
21
21
|
profiler?: Profiler;
|
|
22
|
+
cache?<T>(namespace: string, key: string, factory: () => Promise<T>): Promise<T>;
|
|
22
23
|
}
|
|
23
24
|
type FileOutput = {
|
|
24
25
|
filename: string;
|
|
@@ -28,7 +29,9 @@ export declare namespace Types {
|
|
|
28
29
|
afterOneFileWrite?: LifecycleHooksDefinition['afterOneFileWrite'];
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
+
interface DocumentFile extends Source {
|
|
33
|
+
hash?: string;
|
|
34
|
+
}
|
|
32
35
|
type Promisable<T> = T | Promise<T>;
|
|
33
36
|
type InstanceOrArray<T> = T | T[];
|
|
34
37
|
/**
|
|
@@ -296,6 +299,7 @@ export declare namespace Types {
|
|
|
296
299
|
[name: string]: any;
|
|
297
300
|
};
|
|
298
301
|
profiler?: Profiler;
|
|
302
|
+
cache?<T>(namespace: string, key: string, factory: () => Promise<T>): Promise<T>;
|
|
299
303
|
};
|
|
300
304
|
type OutputPreset<TPresetConfig = any> = {
|
|
301
305
|
buildGeneratesSection: (options: PresetFnArgs<TPresetConfig>) => Promisable<GenerateOptions[]>;
|