function / @typed/template

isHtmlRenderEvent

Checks if a value is an HtmlRenderEvent.

Package version
1.0.0-beta.13
Category
HTML transport recognition
Since
1.0.0

Import

import { isHtmlRenderEvent } from "@typed/template";

Signatures

export declare function isHtmlRenderEvent(event: unknown): event is HtmlRenderEvent;

Why

The guard requires both the HTML discriminant and renderer-transport brand, rejecting structurally similar untrusted objects.

Ownership and lifetime

The guard borrows the value and retains no HTML.

Examples

import { isHtmlRenderEvent, HtmlRenderEvent } from "@typed/template/RenderEvent"

const event = HtmlRenderEvent("<div>Hello</div>", true)
console.log(isHtmlRenderEvent(event)) // true

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source