(matches: SelectedTopics)
| 10 | const color = '#0366d6' |
| 11 | |
| 12 | export const makeOptions = (matches: SelectedTopics): readonly TopicOption[] => { |
| 13 | return matches.map((match) => match |
| 14 | ? { value: match.value, label: match.label, color } |
| 15 | : { value: 'missing', label: '<missing>', color: '' }, |
| 16 | ) as TopicOption[] |
| 17 | } |
| 18 | |
| 19 | type LoadOptionsType = (str: string) => Promise<readonly TopicOption[]> |
| 20 |
no outgoing calls
no test coverage detected