@cenk1cenk2/oclif-common 2.1.1 → 2.1.2
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/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -257,10 +257,10 @@ declare class Command<Ctx extends ListrContext = ListrContext, Config extends Ba
|
|
|
257
257
|
*/
|
|
258
258
|
shouldRunAfter(_ctx?: Ctx): void | Promise<void>;
|
|
259
259
|
/** Run all tasks from task manager. */
|
|
260
|
-
runTasks(): Promise<
|
|
260
|
+
runTasks<C extends Ctx = Ctx>(): Promise<C>;
|
|
261
261
|
/** Tasks to run before end of the command. */
|
|
262
|
-
finally(): Promise<{
|
|
263
|
-
ctx:
|
|
262
|
+
finally<C extends Ctx = Ctx>(): Promise<{
|
|
263
|
+
ctx: C;
|
|
264
264
|
}>;
|
|
265
265
|
/** Catch any error occurred during command. */
|
|
266
266
|
catch(e: Error): Promise<void>;
|