EventInterface.d.ts 671 B

123456789101112131415161718
  1. export type FocusEventHandler = (e: FocusEvent) => void;
  2. export type MouseEventHandler = (e: MouseEvent) => void;
  3. export type KeyboardEventHandler = (e: KeyboardEvent) => void;
  4. export type CompositionEventHandler = (e: CompositionEvent) => void;
  5. export type ClipboardEventHandler = (e: ClipboardEvent) => void;
  6. export type ChangeEventHandler = (e: ChangeEvent) => void;
  7. export type WheelEventHandler = (e: WheelEvent) => void;
  8. export type ChangeEvent = Event & {
  9. target: {
  10. value?: string | undefined;
  11. };
  12. };
  13. export type CheckboxChangeEvent = Event & {
  14. target: {
  15. checked?: boolean;
  16. };
  17. };
  18. export type EventHandler = (...args: any[]) => void;