From cbfe00b28edeb53fc4793de2b7961d59c6c3419f Mon Sep 17 00:00:00 2001 From: shreysinha25 Date: Sun, 15 Dec 2024 16:28:16 +0530 Subject: [PATCH] fix issue #4238 Typescript types for dragAndDrop are incorrect --- types/web-element.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/web-element.d.ts b/types/web-element.d.ts index 6505b388d..a5196ce82 100644 --- a/types/web-element.d.ts +++ b/types/web-element.d.ts @@ -360,10 +360,13 @@ export type ScopedElementRect = { readonly height: number; }; -export type DragAndDropDestination = { +export type DragAndDropDestination = +{ readonly xOffset: number; readonly yOffset: number; -}; +} +|{readonly x: number; readonly y: number;} +|WebElement export interface ElementFunction extends Pick<