Skip to content

Commit

Permalink
Fixed imports & exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukairo-02 committed Jun 29, 2024
1 parent 4c565e6 commit ae20913
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/option-builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BrocliError } from '.';
import { BroCliError } from './brocli-error';

export type OptionType = 'string' | 'boolean' | 'number' | 'positional';

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit ae20913

Please sign in to comment.