(node: Node, name: string)
| 12 | * @param name Name to attach to the error message. |
| 13 | */ |
| 14 | export function assertElementNode(node: Node, name: string): asserts node is HTMLElement { |
| 15 | if (node.nodeType !== 1) { |
| 16 | throw Error( |
| 17 | `${name} must be attached to an element node. ` + `Currently attached to "${node.nodeName}".`, |
| 18 | ); |
| 19 | } |
| 20 | } |
no outgoing calls
no test coverage detected