( state: AutoCompleteState, options: AutoCompleteOptionsReq<A>, theme: Theme, renderOptions?: RenderOptions | undefined )
| 3333 | header === undefined ? body : header + "\n" + body |
| 3334 | |
| 3335 | const renderAutoCompleteFilter = <A>( |
| 3336 | state: AutoCompleteState, |
| 3337 | options: AutoCompleteOptionsReq<A>, |
| 3338 | theme: Theme, |
| 3339 | renderOptions?: RenderOptions | undefined |
| 3340 | ) => { |
| 3341 | const filterValue = state.query.length === 0 |
| 3342 | ? renderOptions?.plain === true |
| 3343 | ? options.filterPlaceholder |
| 3344 | : Ansi.annotate(theme.colors, options.filterPlaceholder, theme.mutedColor) |
| 3345 | : renderOptions?.plain === true |
| 3346 | ? state.query |
| 3347 | : Ansi.annotate(theme.colors, state.query, Ansi.combine(Ansi.underlined, theme.primaryColor)) |
| 3348 | return `[${options.filterLabel}: ${filterValue}]` |
| 3349 | } |
| 3350 | |
| 3351 | const renderAutoCompleteOutput = <A>( |
| 3352 | state: AutoCompleteState, |
no test coverage detected