Skip to content

Commit

Permalink
fix: make new props optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 28, 2022
1 parent 8b2b6b4 commit e94f278
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default abstract class Command {
/**
* Emit deprecation warning when a command alias is used
*/
static deprecateAliases: boolean
static deprecateAliases?: boolean

/**
* An override string (or strings) for the default usage documentation.
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface CommandProps {
/**
* Emit a deprecation warning when a command alias is used.
*/
deprecateAliases: boolean
deprecateAliases?: boolean

/** An array of aliases for this command. */
aliases: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export type FlagProps = {
/**
* Emit deprecation warning when a flag alias is provided
*/
deprecateAliases: boolean
deprecateAliases?: boolean
}

export type BooleanFlagProps = FlagProps & {
Expand Down

0 comments on commit e94f278

Please sign in to comment.