function / @typed/ui/Dom/Events

isEventKey

Tests whether a prop name uses Typed’s native event conventions.

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Event inspection
Since
1.0.0

Import

import { isEventKey } from "@typed/ui/Dom/Events";

Signatures

export declare function isEventKey(key: string): key is EventHandlerProperty;

Why

Host forwarding and merging treat on* and @* keys as handlers rather than ordinary attributes.

Ownership and lifetime

Pure predicate; it installs no listener and retains no key.

Source