MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / domDriverInputGuard

Function domDriverInputGuard

dom/src/makeDOMDriver.ts:23–30  ·  view source on GitHub ↗
(view$: Stream<VNode>)

Source from the content-addressed store, hash-verified

21}
22
23function domDriverInputGuard(view$: Stream<VNode>): void {
24 if (!view$
25 || typeof view$.addListener !== `function`
26 || typeof view$.fold !== `function`) {
27 throw new Error(`The DOM driver function expects as input a Stream of ` +
28 `virtual DOM elements`);
29 }
30}
31
32export interface DOMDriverOptions {
33 modules?: Array<Module>;

Callers 1

DOMDriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected