(
nodeList: NodeListOf<Element>,
elementClass: Platform.Constructor.Constructor<T>)
| 92 | * Asserts that all elements of `nodeList` are at least of type `T`. |
| 93 | */ |
| 94 | export function assertElements<T extends Element>( |
| 95 | nodeList: NodeListOf<Element>, |
| 96 | elementClass: Platform.Constructor.Constructor<T>): asserts nodeList is NodeListOf<T> { |
| 97 | nodeList.forEach(e => assert.instanceOf(e, elementClass)); |
| 98 | } |
| 99 | |
| 100 | export function getElementWithinComponent<T extends HTMLElement, V extends Element>( |
| 101 | component: T, selector: string, elementClass: Platform.Constructor.Constructor<V>) { |
no outgoing calls