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

RenderEvent overview

Added in v1.0.0


Table of contents


utils

DomRenderEvent

Signature

export declare function DomRenderEvent(rendered: Rendered): DomRenderEvent

Added in v1.0.0

DomRenderEvent (type alias)

Signature

export type DomRenderEvent = {
  readonly _tag: "dom"
  readonly rendered: Rendered
  readonly valueOf: () => Rendered
}

Added in v1.0.0

HtmlRenderEvent

Signature

export declare function HtmlRenderEvent(html: string, done: boolean): HtmlRenderEvent

Added in v1.0.0

HtmlRenderEvent (type alias)

Signature

export type HtmlRenderEvent = {
  readonly _tag: "html"
  readonly html: string
  readonly done: boolean
  readonly valueOf: () => string
}

Added in v1.0.0

RenderEvent (type alias)

Signature

export type RenderEvent = DomRenderEvent | HtmlRenderEvent

Added in v1.0.0

isHtmlRenderEvent

Signature

export declare function isHtmlRenderEvent(value: unknown): value is HtmlRenderEvent

Added in v1.0.0

isRenderEvent

Signature

export declare function isRenderEvent(value: unknown): value is RenderEvent

Added in v1.0.0