@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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. 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<Ctx>;
260
+ runTasks<C extends Ctx = Ctx>(): Promise<C>;
261
261
  /** Tasks to run before end of the command. */
262
- finally(): Promise<{
263
- ctx: 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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "author": {