Make properties x and y optional in mouseInteractionParam (#1375)

* Make properties x and y optional in mouseInteractionParam

The event representing a mouse interaction of focus an element does not include the properties x and y. Thus, they must be defined as optional.

* Fix typings
This commit is contained in:
Antonio Villegas
2026-04-01 12:00:00 +08:00
committed by GitHub
parent a939c792db
commit 8d555c1b1c
2 changed files with 5 additions and 5 deletions

View File

@@ -417,8 +417,8 @@ export type CanvasArg =
type mouseInteractionParam = {
type: MouseInteractions;
id: number;
x: number;
y: number;
x?: number;
y?: number;
pointerType?: PointerTypes;
};