import React from "react"; export type OnPressEventType = React.MouseEvent | React.FocusEvent; export type GeneralEventType = Event | React.UIEvent; export type GenericEventCallback = (ev: GeneralEventType) => unknown; export type KeyboardEventCallback = (event: KeyboardEvent) => unknown; // Custom type for all mouse event callbacks export type MouseEventCallBack = (event: React.MouseEvent) => void;