(id: string)
| 22 | const stableApiId = (id: string): string => id.replace(/#(?:type|value)$/, "") |
| 23 | |
| 24 | const displayApiId = (id: string): string => { |
| 25 | const separator = id.indexOf("#") |
| 26 | if (separator === -1) { |
| 27 | return id |
| 28 | } |
| 29 | const module = id.slice(0, separator).split("/").at(-1)! |
| 30 | return `${module}.${id.slice(separator + 1)}` |
| 31 | } |
| 32 | |
| 33 | const codeSpan = (value: string): string => { |
| 34 | const delimiter = "`".repeat(Math.max(1, ...(value.match(/`+/g)?.map((run) => run.length + 1) ?? []))) |
no test coverage detected