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

Function assertQwikElement

packages/qwik/src/core/error/assert.ts:69–76  ·  view source on GitHub ↗
(el: any)

Source from the content-addressed store, hash-verified

67}
68
69export function assertQwikElement(el: any): asserts el is QwikElement {
70 if (qDev) {
71 if (!isQwikElement(el)) {
72 console.error('Not a Qwik Element, got', el);
73 throwErrorAndStop(ASSERT_DISCLAIMER + 'Not a Qwik Element');
74 }
75 }
76}
77
78export function assertElement(el: Node | VirtualElement): asserts el is Element {
79 if (qDev) {

Callers 4

getContextFunction · 0.90
smartUpdateChildrenFunction · 0.90
diffVnodeFunction · 0.90
getSlotMapFunction · 0.90

Calls 2

isQwikElementFunction · 0.90
throwErrorAndStopFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…