2021-08-29 02:44:24 +00:00
|
|
|
export type FocusEventHandler = (e: FocusEvent) => void;
|
|
|
|
export type MouseEventHandler = (e: MouseEvent) => void;
|
|
|
|
export type KeyboardEventHandler = (e: KeyboardEvent) => void;
|
2022-03-20 02:50:57 +00:00
|
|
|
export type CompositionEventHandler = (e: CompositionEvent) => void;
|
|
|
|
export type ClipboardEventHandler = (e: ClipboardEvent) => void;
|
|
|
|
export type ChangeEventHandler = (e: ChangeEvent) => void;
|
2022-04-14 01:54:45 +00:00
|
|
|
export type WheelEventHandler = (e: WheelEvent) => void;
|
2021-08-29 02:44:24 +00:00
|
|
|
export type ChangeEvent = Event & {
|
|
|
|
target: {
|
|
|
|
value?: string | undefined;
|
|
|
|
};
|
|
|
|
};
|
2022-03-12 01:56:32 +00:00
|
|
|
export type CheckboxChangeEvent = Event & {
|
|
|
|
target: {
|
|
|
|
checked?: boolean;
|
|
|
|
};
|
|
|
|
};
|
2021-08-29 02:44:24 +00:00
|
|
|
|
|
|
|
export type EventHandler = (...args: any[]) => void;
|