Skip to content

Commit 262911c

Browse files
authored
Update compute-positions-types.d.ts
Updated types on place
1 parent 737efb8 commit 262911c

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed
Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
import type { Middleware } from '../components/Tooltip/TooltipTypes'
22

33
export interface IComputePositions {
4-
elementReference?: Element | HTMLElement | null
5-
tooltipReference?: Element | HTMLElement | null
6-
tooltipArrowReference?: Element | HTMLElement | null
7-
place?: 'top' | 'right' | 'bottom' | 'left'
8-
offset?: number
9-
strategy?: 'absolute' | 'fixed'
10-
middlewares?: Middleware[]
4+
elementReference?: Element | HTMLElement | null;
5+
tooltipReference?: Element | HTMLElement | null;
6+
tooltipArrowReference?: Element | HTMLElement | null;
7+
place?:
8+
| 'top'
9+
| 'top-start'
10+
| 'top-end'
11+
| 'right'
12+
| 'right-start'
13+
| 'right-end'
14+
| 'bottom'
15+
| 'bottom-start'
16+
| 'bottom-end'
17+
| 'left'
18+
| 'left-start'
19+
| 'left-end';
20+
offset?: number;
21+
strategy?: 'absolute' | 'fixed';
22+
middlewares?: Middleware[];
1123
}

0 commit comments

Comments
 (0)