Skip to content

Commit a5bc06c

Browse files
committed
fix: resolve tsc -b type error for builtin subcommand alias union
1 parent c05f05e commit a5bc06c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.changeset/skills-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"incur": patch
33
---
44

5-
Added `skills list` subcommand that shows all skills a CLI defines with install status. Fixed double-period in generated skill descriptions when command descriptions ended with a period.
5+
Added `skills list` subcommand that shows all skills a CLI defines with install status.

src/Help.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export declare namespace formatRoot {
5656
export declare namespace formatCommand {
5757
type Options = {
5858
/** Map of option names to single-char aliases. */
59-
alias?: Record<string, string> | undefined
59+
alias?: Partial<Record<string, string>> | undefined
6060
/** Alternative binary names for this CLI. */
6161
aliases?: string[] | undefined
6262
/** Zod schema for positional arguments. */
@@ -261,7 +261,7 @@ function envEntries(schema: z.ZodObject<any>) {
261261
}
262262

263263
/** Extracts option entries from a Zod object schema. */
264-
function optionEntries(schema: z.ZodObject<any>, alias?: Record<string, string> | undefined) {
264+
function optionEntries(schema: z.ZodObject<any>, alias?: Partial<Record<string, string>> | undefined) {
265265
const entries: {
266266
flag: string
267267
description: string

0 commit comments

Comments
 (0)