Signature for a Lit render function attached to a
LitComponentResolver. Receives the per-field
LitRenderProps built by the walker and returns a Lit
TemplateResult for direct interpolation into the host
element's render() method.
The return type is TemplateResult, the type produced by
the html-tagged template literal. Unlike RenderFunction (React)
which returns unknown so React elements, primitive children, and
arbitrary value types can flow through, Lit templates have a single
canonical type — narrowing makes the resolver dispatch loop simpler
and forces every renderer to return a structurally compatible value.
Signature for a Lit render function attached to a LitComponentResolver. Receives the per-field LitRenderProps built by the walker and returns a Lit TemplateResult for direct interpolation into the host element's
render()method.The return type is
TemplateResult, the type produced by thehtml-tagged template literal. UnlikeRenderFunction(React) which returnsunknownso React elements, primitive children, and arbitrary value types can flow through, Lit templates have a single canonical type — narrowing makes the resolver dispatch loop simpler and forces every renderer to return a structurally compatible value.