talented-args 0.2.2-beta → 0.2.3-beta
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/options.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IArgDefinition as TalentedArgDefinition } from './definitions';
|
|
2
2
|
import { DefinitionValidationError as TalentedArgsDefinitionValidationError, TalentedArgsError, InvalidArgDefinitionError as TalentedArgsInvalidArgDefinitionError, InvalidCommandError as TalentedArgsInvalidCommandError, OptionsValidationError as TalentedArgsOptionsValidationError } from './errors';
|
|
3
3
|
import { TalentedArgs } from './main';
|
|
4
|
-
import { IOptions as TalentedArgOptions } from './options';
|
|
5
|
-
export { TalentedArgs, TalentedArgDefinition, TalentedArgOptions, TalentedArgsError, TalentedArgsDefinitionValidationError, TalentedArgsInvalidArgDefinitionError, TalentedArgsInvalidCommandError, TalentedArgsOptionsValidationError, };
|
|
4
|
+
import { ICommandOption as TalentedArgCommandOption, IOptions as TalentedArgOptions, ICommandsLookup as TalentedArgsCommandsLookup } from './options';
|
|
5
|
+
export { TalentedArgs, TalentedArgDefinition, TalentedArgOptions, TalentedArgCommandOption, TalentedArgsCommandsLookup, TalentedArgsError, TalentedArgsDefinitionValidationError, TalentedArgsInvalidArgDefinitionError, TalentedArgsInvalidCommandError, TalentedArgsOptionsValidationError, };
|
|
6
6
|
export default TalentedArgs;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,mCAMkB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,mCAMkB;AAehB,sHApB6B,kCAAqC,OAoB7B;AADrC,kGAlBA,0BAAiB,OAkBA;AAEjB,sHAnB6B,kCAAqC,OAmB7B;AACrC,gHAnBuB,4BAA+B,OAmBvB;AAC/B,mHAnB0B,+BAAkC,OAmB1B;AAjBpC,+BAAsC;AAQpC,6FARO,mBAAY,OAQP;AAYd,kBAAe,mBAAY,CAAC"}
|
package/dist/options.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IArgDefinition } from './definitions';
|
|
2
2
|
import { IStyleSpec } from './styling';
|
|
3
3
|
import { StringKeys } from './tools';
|
|
4
|
-
export interface
|
|
4
|
+
export interface ICommandOption {
|
|
5
5
|
/**
|
|
6
6
|
* Short command description, displayed in the command list
|
|
7
7
|
*/
|
|
@@ -12,7 +12,7 @@ export interface ICommandOptions {
|
|
|
12
12
|
details?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare type ICommandsLookup = {
|
|
15
|
-
[key: string]: string |
|
|
15
|
+
[key: string]: string | ICommandOption;
|
|
16
16
|
};
|
|
17
17
|
export interface IOptions<TDestination, TCommands extends ICommandsLookup = never, TDef extends IArgDefinition<TDestination, any, StringKeys<TCommands>> = IArgDefinition<TDestination, any, StringKeys<TCommands>>> {
|
|
18
18
|
/**
|
package/package.json
CHANGED