( tagName: string, content?: string | null, attrs?: Record<string, string | boolean>, )
| 37 | } |
| 38 | |
| 39 | export function wrapHtml( |
| 40 | tagName: string, |
| 41 | content?: string | null, |
| 42 | attrs?: Record<string, string | boolean>, |
| 43 | ): string { |
| 44 | if (content == null) return htmlOpen(tagName, attrs); |
| 45 | return htmlOpen(tagName, attrs) + (content || '') + htmlClose(tagName); |
| 46 | } |
| 47 | |
| 48 | export function buildCode<T extends unknown[]>( |
| 49 | fn: (...args: T) => void, |
no test coverage detected