diff --git a/src/index.ts b/src/index.ts index 6ae007e..f19876b 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,12 @@ -export { BroCliError as BrocliError } from './brocli-error'; -export type { BroCliConfig, Command, CommandHandler, GenericCommandHandler, RawCommand } from './command-core'; +export { BroCliError } from './brocli-error'; +export type { + BroCliConfig, + Command, + CommandHandler, + GenericCommandHandler, + HelpHandler, + RawCommand, +} from './command-core'; export { command, handler, runCli } from './command-core'; export type { AssignConfigName, diff --git a/src/option-builder.ts b/src/option-builder.ts index 00b466c..e2f9bee 100755 --- a/src/option-builder.ts +++ b/src/option-builder.ts @@ -1,4 +1,4 @@ -import { BrocliError } from '.'; +import { BroCliError } from './brocli-error'; export type OptionType = 'string' | 'boolean' | 'number' | 'positional'; @@ -248,7 +248,7 @@ export class OptionBuilderBase< const maxVal = config.maxVal; if (maxVal !== undefined && maxVal < value) { - throw new BrocliError("Unable to define option's min value to be higher than max value!"); + throw new BroCliError("Unable to define option's min value to be higher than max value!"); } return new OptionBuilderBase({ ...config, minVal: value }) as any; @@ -266,7 +266,7 @@ export class OptionBuilderBase< const minVal = config.minVal; if (minVal !== undefined && minVal < value) { - throw new BrocliError("Unable to define option's max value to be lower than min value!"); + throw new BroCliError("Unable to define option's max value to be lower than min value!"); } return new OptionBuilderBase({ ...config, maxVal: value }) as any;