Mixins / foldkit-mixins-surface
toRenderer
function · packages/mixins-surface/src/surfaceView.ts:30
function toRenderer<Slots_, Model, Message>(
view: SlotView.SlotView<Slots_, Model, Message>,
): Renderer<Model, Message>Adapts a SlotView to a Surface renderer. Surface.view hands a renderer a
ViewBuilder — the real builder with its MessageUniverse phantom removed —
and this is the matching boundary cast, sound because the renderer only
constructs the Surface's Message subset.