@yeoman/types 1.1.2 → 1.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yeoman/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common API for yeoman's generator/environment stack",
|
|
6
6
|
"keywords": [
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"mem-fs": "^4.0.0-beta.1",
|
|
61
61
|
"mem-fs-editor": ">=10.0.2"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f2744847a843384562adc6bf7f10a1349305c5ea"
|
|
64
64
|
}
|
|
@@ -81,4 +81,13 @@ export type InstantiateOptions<G extends BaseGenerator = BaseGenerator> = {
|
|
|
81
81
|
generatorOptions?: Partial<Omit<GetGeneratorOptions<G>, 'env' | 'resolved' | 'namespace'>> | undefined;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
export type ComposeOptions<G extends BaseGenerator = BaseGenerator> = InstantiateOptions<G> &
|
|
84
|
+
export type ComposeOptions<G extends BaseGenerator = BaseGenerator> = InstantiateOptions<G> & SchedulingOptions<G>;
|
|
85
|
+
|
|
86
|
+
export type SchedulingOptions<G extends BaseGenerator = BaseGenerator> = {
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new task to queue the composed generator tasks instead of queueing immediately.
|
|
89
|
+
* The task is queued in an Environment’s internal priority which is executed before any generator task.
|
|
90
|
+
* Function is accepted starting from Environment 4.4.0.
|
|
91
|
+
*/
|
|
92
|
+
schedule?: boolean | ((generator: G) => boolean);
|
|
93
|
+
};
|