variable / @typed/template/EventHandler

EventHandlerTypeId

The global symbol used to identify EventHandler values across module copies.

Package version
1.0.0-beta.13
Category
Event handler protocol
Since
1.0.0

Import

import { EventHandlerTypeId } from "@typed/template/EventHandler";

Signatures

export declare const EventHandlerTypeId: unique symbol;
export type EventHandlerTypeId = typeof EventHandlerTypeId;

Why

A stable nominal key makes the runtime guard precise without depending on browser event object shape.

Ownership and lifetime

The symbol is process-global metadata. It allocates no listener or resource.

Examples

import { EventHandlerTypeId } from "@typed/template/EventHandler"

const key = EventHandlerTypeId
import { EventHandlerTypeId, type EventHandlerTypeId as Id } from "@typed/template/EventHandler"

const id: Id = EventHandlerTypeId

Other public imports

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

Source