(name: string)
| 17 | export type SelectFromListConfig<L extends object> = Sorting<L> & Naming & OutputListConfig<L> |
| 18 | |
| 19 | export const indefiniteArticleFor = (name: string): string => name.match(/^[aeio]/i) ? 'an' : 'a' |
| 20 | |
| 21 | function promptFromNaming(config: Naming): string | undefined { |
| 22 | return config.itemName ? `Select ${indefiniteArticleFor(config.itemName)} ${config.itemName}.` : undefined |
no outgoing calls
no test coverage detected