Skip to content

Commit 2dce85a

Browse files
committed
feat: add queueTask and addPriority
1 parent c1cb1ef commit 2dce85a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

workspaces/types/types/environment/environment.d.ts

+15
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,19 @@ export type BaseEnvironment<A = InputOutputAdapter, S extends Store = Store> = {
100100
* @param packagePath The path to the npm package of the generator.
101101
*/
102102
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;
103118
};

0 commit comments

Comments
 (0)