(
rawLines: string,
loc: NodeLocation,
opts: Options = {},
)
| 11 | export type { Options }; |
| 12 | |
| 13 | export function codeFrameColumns( |
| 14 | rawLines: string, |
| 15 | loc: NodeLocation, |
| 16 | opts: Options = {}, |
| 17 | ): string { |
| 18 | const shouldHighlight = |
| 19 | opts.forceColor || (isColorSupported() && opts.highlightCode); |
| 20 | |
| 21 | return _codeFrameColumns( |
| 22 | rawLines, |
| 23 | loc, |
| 24 | opts, |
| 25 | shouldHighlight |
| 26 | ? { |
| 27 | defs, |
| 28 | highlight, |
| 29 | } |
| 30 | : undefined, |
| 31 | ); |
| 32 | } |
no test coverage detected