type-alias / @typed/ui/Dom/Types

HostComponent

Standard Fx result of a DOM-backed component.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Host rendering types
Since
1.0.0

Import

import type { HostComponent } from "@typed/ui/Dom/Types";

Signatures

export type HostComponent<Inputs> = Fx<RenderEvent, Renderable.Error<Inputs>, Renderable.Services<Inputs> | Scope.Scope | RenderTemplate>;

Why

The alias derives error/service channels from renderable inputs and makes Scope plus RenderTemplate requirements explicit.

Ownership and lifetime

The required Scope owns DOM parts, listeners, refs, subscriptions, and cleanup. The host may modify only its represented DOM range.

Source