function / @typed/template

isDomRenderEvent

Checks if a value is a DomRenderEvent.

Package version
1.0.0-beta.7
Category
Native DOM recognition
Since
1.0.0

Import

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

Signatures

export declare function isDomRenderEvent(event: unknown): event is DomRenderEvent;

Why

Consumers can select concrete-node behavior without inspecting node shapes.

Ownership and lifetime

The guard borrows the event and changes no DOM ownership.

Examples

import { isDomRenderEvent, DomRenderEvent } from "@typed/template/RenderEvent"

const event = DomRenderEvent(document.createElement("div"))
console.log(isDomRenderEvent(event)) // true

Other public imports

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

Source