Home > @xoram/plugin-panoramique > NativeEvents
NativeEvents type
List native events that can be fired on any HTML Element as a strongly typed Record<EventName, EventHandler>
.
Signature:
typescript
export type NativeEvents = {
[event in keyof HTMLElementEventMap]?: (event: HTMLElementEventMap[event]) => void;
};
1
2
3
2
3