Skip to content

Commit

Permalink
fix issue #4238 Typescript types for dragAndDrop are incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
shreysinha25 committed Dec 15, 2024
1 parent 329d797 commit cbfe00b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/web-element.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit cbfe00b

Please sign in to comment.