(name)
| 31 | } |
| 32 | |
| 33 | export function View(name) { |
| 34 | const view = _views[name]; |
| 35 | |
| 36 | if (view) return view; |
| 37 | throw new Error(`View ${name} is not found in the registry.`); |
| 38 | } |
| 39 | |
| 40 | export function hasView(name) { |
| 41 | return (name in _views); |
no outgoing calls
no test coverage detected