[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

chore: appease typescript

Nate Moore (Feb 24, 2023, 7:22 PM -0600) 0d350fdd 6d1e5e67

+5 -5
+5 -5
packages/prompts/src/index.ts
··· 411 411 | 'group-active-selected' 412 412 | 'submitted' 413 413 | 'cancelled', 414 - options: Options = [] as any 414 + options: Options[number][] = [] as any 415 415 ) => { 416 416 const label = option.label ?? String(option.value); 417 - const isItem = typeof option.group === 'string'; 417 + const isItem = typeof (option as any).group === 'string'; 418 418 const next = isItem && (options[options.indexOf(option) + 1] ?? { group: true }); 419 - const isLast = isItem && next.group === true; 419 + const isLast = isItem && (next as any).group === true; 420 420 const prefix = isItem ? `${isLast ? S_BAR_END : S_BAR} ` : ''; 421 421 422 422 if (state === 'active') { ··· 486 486 .map((option, i, options) => { 487 487 const selected = 488 488 this.value.includes(option.value) || 489 - (option.group === true && this.isGroupSelected(option.value)); 489 + (option.group === true && this.isGroupSelected(`${option.value}`)); 490 490 const active = i === this.cursor; 491 491 const groupActive = 492 492 !active && ··· 510 510 .map((option, i, options) => { 511 511 const selected = 512 512 this.value.includes(option.value) || 513 - (option.group === true && this.isGroupSelected(option.value)); 513 + (option.group === true && this.isGroupSelected(`${option.value}`)); 514 514 const active = i === this.cursor; 515 515 const groupActive = 516 516 !active &&