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

EventHandlerInput

Effect or EventHandler accepted for one real DOM event.

Learn this UI primitive →

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

Import

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

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 EventHandlerInput<Ev extends Event = Event, E = any, R = any> = Effect.Effect<unknown, E, R> | EventHandler.EventHandler<Ev, E, R> | null | undefined;

Why

Components can accept a simple Effect or preserve listener options through EventHandler without wrapping browser events in synthetic objects.

Ownership and lifetime

The template Scope installs/removes the listener; an AbortSignal or once option may end the handler sooner.

Other public imports

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

Source