Skip to main content Link Search Menu Expand Document (external link)

Render overview

Added in v1.0.0


Table of contents


utils

ToRendered (type alias)

Signature

export type ToRendered<T extends RenderEvent | null> = T extends null ? Rendered | null : Rendered

Added in v1.0.0

render

Signature

export declare function render<R, E, T extends RenderEvent | null>(
  rendered: Fx.Fx<T, E, R>
): Fx.Fx<ToRendered<T>, E, R | RenderTemplate | RenderContext.RenderContext | RootElement>

Added in v1.0.0

renderLayer

Signature

export declare const renderLayer: (
  window: Window & GlobalThis,
  options?: DomServicesElementParams
) => Layer.Layer<RenderTemplate | RenderContext.RenderContext | CurrentEnvironment | DomServices>

Added in v1.0.0

renderToLayer

Signature

export declare function renderToLayer<R, E, T extends RenderEvent | null>(
  rendered: Fx.Fx<T, E, R>
): Layer.Layer<never, never, RenderContext.RenderContext | RenderTemplate | RootElement | Exclude<R, Scope.Scope>>

Added in v1.0.0