Skip to content

Commit

Permalink
Use DOMRect in the DomRectWithOwnerDocument type
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 14, 2022
1 parent c16ca22 commit c8a3214
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/components/src/popover/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ type PositionYAxis = 'top' | 'middle' | 'bottom';
type PositionXAxis = 'left' | 'center' | 'right';
type PositionCorner = 'top' | 'right' | 'bottom' | 'left';

type DomRectWithOwnerDocument = ReturnType<
Element[ 'getBoundingClientRect' ]
> & {
type DomRectWithOwnerDocument = DOMRect & {
ownerDocument?: Document;
};

Expand Down

0 comments on commit c8a3214

Please sign in to comment.