type-alias / @typed/ui/Dom/Types

TemplateEventHandlers

Template @event handlers for real DOM events.

Learn this UI primitive →

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

Import

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

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