function / @typed/astro/Component

view

Resolves Astro’s props and slots call while leaving zero-argument Fx values lazy. Renderer adapters use this after isComponent succeeds; application components normally enter through Astro markup rather than calling this helper directly.

Package version
1.0.0-beta.7
Category
Renderer dispatch
Since
1.0.0

Import

import { view } from "@typed/astro/Component";

Signatures

export declare function view(value: Fx.Fx<RenderEvent, unknown, Services> | ((props: Record<string, unknown>, slots: Slots) => Fx.Fx<RenderEvent, unknown, Services>), props: Record<string, unknown>, slots: Slots): Fx.Fx<RenderEvent, unknown, Services>;

Source