type-alias / @typed/ui/Dom

TemplateEventHandlers

Template @event handlers for real DOM events.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Event input types
Since
1.0.0

Import

import type { TemplateEventHandlers } from "@typed/ui/Dom";

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export type TemplateEventHandlers = {
    readonly [K in `@${string}`]?: EffectInput | EventHandler.EventHandler<Event, any, any> | null;
};

Why

Custom or future event names remain expressible without waiting for a DOM interface update and without introducing a synthetic event layer.

Ownership and lifetime

The template Scope owns listener installation, abortion, and removal.

Other public imports

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

Source