Extracts the base properties from MouseEvent and infers action-specific button types. This creates discriminated unions based on the action type.
For example:
Extracts the base properties from MouseEvent and infers action-specific button types. This creates discriminated unions based on the action type.
For example: