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
Member of
EventHandler

Import

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

Access EventHandler.EventHandlerTypeId through the imported EventHandler export. Its declaration below describes the member.

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

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