@cenk1cenk2/oclif-common 2.1.0 → 2.1.1

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -271,17 +271,17 @@ declare class Command<Ctx extends ListrContext = ListrContext, Config extends Ba
271
271
  }
272
272
 
273
273
  declare type ConfigCommandChoices<T extends string> = Record<T, () => void | Promise<void>>;
274
- interface ConfigCommandSetup<T extends string> {
274
+ interface ConfigCommandSetup<T extends string = string, LockFile = any> {
275
275
  choices: ConfigCommandChoices<T>;
276
- locker: LockerService;
276
+ locker: LockerService<LockFile>;
277
277
  }
278
278
 
279
- declare abstract class ConfigCommand<CommandChoices extends string, Ctx extends ListrContext = ListrContext, Config extends BaseConfig = BaseConfig> extends Command<Ctx, Config> {
279
+ declare abstract class ConfigCommand<CommandChoices extends string = string, LockFile = any, Ctx extends ListrContext = ListrContext, Config extends BaseConfig = BaseConfig> extends Command<Ctx, Config> {
280
280
  choices: ConfigCommandChoices<CommandChoices>;
281
- locker: LockerService;
281
+ locker: LockerService<LockFile>;
282
282
  run(): Promise<void>;
283
283
  private generate;
284
- abstract setup(): ConfigCommandSetup<CommandChoices> | Promise<ConfigCommandSetup<CommandChoices>>;
284
+ abstract setup(): ConfigCommandSetup<CommandChoices, LockFile> | Promise<ConfigCommandSetup<CommandChoices, LockFile>>;
285
285
  }
286
286
 
287
287
  declare enum FileConstants {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "author": {