@yeoman/types 0.0.1 → 0.1.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": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "private": false,
5
5
  "description": "Common API for yeoman's generator/environment stack",
6
6
  "keywords": [
@@ -50,5 +50,5 @@
50
50
  "access": "public",
51
51
  "registry": "https://registry.npmjs.org/"
52
52
  },
53
- "gitHead": "c1cb1ef2d571bb6b2a1efdaf808e89ab424afb5f"
53
+ "gitHead": "bce79e464320e74c85d417e733e7d073e07f5d0d"
54
54
  }
@@ -100,4 +100,19 @@ export type BaseEnvironment<A = InputOutputAdapter, S extends Store = Store> = {
100
100
  * @param packagePath The path to the npm package of the generator.
101
101
  */
102
102
  registerStub(generator: GetGeneratorConstructor, namespace: string, resolved?: string, packagePath?: string): void;
103
+
104
+ /**
105
+ * Queue tasks
106
+ * @param priority
107
+ * @param task
108
+ * @param options
109
+ */
110
+ queueTask(priority: string, task: (...args: any[]) => void | Promise<void>, options?: { once?: string, startQueue?: boolean }): void;
111
+
112
+ /**
113
+ * Add priority
114
+ * @param priority
115
+ * @param before
116
+ */
117
+ addPriority(priority: string, before: string): void;
103
118
  };