diff --git a/src/cli-ux/styled/table.ts b/src/cli-ux/styled/table.ts index 5d173d268..dc4f7f7d6 100644 --- a/src/cli-ux/styled/table.ts +++ b/src/cli-ux/styled/table.ts @@ -309,11 +309,11 @@ export namespace table { columns: Interfaces.OptionFlag; sort: Interfaces.OptionFlag; filter: Interfaces.OptionFlag; - csv: Interfaces.Flag; + csv: Interfaces.BooleanFlag; output: Interfaces.OptionFlag; - extended: Interfaces.Flag; - 'no-truncate': Interfaces.Flag; - 'no-header': Interfaces.Flag; + extended: Interfaces.BooleanFlag; + 'no-truncate': Interfaces.BooleanFlag; + 'no-header': Interfaces.BooleanFlag; } = { columns: F.string({exclusive: ['extended'], description: 'only show provided columns (comma-separated)'}), sort: F.string({description: 'property to sort by (prepend \'-\' for descending)'}), diff --git a/src/interfaces/parser.ts b/src/interfaces/parser.ts index 7fc4ded0f..c95bfec7a 100644 --- a/src/interfaces/parser.ts +++ b/src/interfaces/parser.ts @@ -215,7 +215,7 @@ export type OptionFlagProps = FlagProps & { export type FlagParserContext = Command & {token: FlagToken} export type FlagParser = (input: I, context: FlagParserContext, opts: P & OptionFlag) => - T extends Array ? Promise : Promise + T extends Array ? Promise : Promise export type ArgParserContext = Command & {token: ArgToken}