MCPcopy
hub / github.com/QwikDev/qwik / assertElement

Function assertElement

packages/qwik/src/core/error/assert.ts:78–85  ·  view source on GitHub ↗
(el: Node | VirtualElement)

Source from the content-addressed store, hash-verified

76}
77
78export function assertElement(el: Node | VirtualElement): asserts el is Element {
79 if (qDev) {
80 if (!isElement(el)) {
81 console.error('Not a Element, got', el);
82 throwErrorAndStop(ASSERT_DISCLAIMER + 'Not an Element');
83 }
84 }
85}

Callers 4

_pauseFromContextsFunction · 0.90
diffVnodeFunction · 0.90
setPropertiesFunction · 0.90
serializeQRLsFunction · 0.90

Calls 2

isElementFunction · 0.90
throwErrorAndStopFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…