(view$: Stream<VNode>)
| 21 | } |
| 22 | |
| 23 | function 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 | |
| 32 | export interface DOMDriverOptions { |
| 33 | modules?: Array<Module>; |