Skip to content

Commit fc2fd4c

Browse files
authored
fix(Popup|Visibility): update types definitions for props (#4019)
1 parent f61cfc6 commit fc2fd4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/behaviors/Visibility/Visibility.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface StrictVisibilityProps {
5959
* Value that context should be adjusted in pixels. Useful for making content appear below content fixed to the
6060
* page.
6161
*/
62-
offset?: number | string | number | string[]
62+
offset?: number | string | (number | string)[]
6363

6464
/** When set to false a callback will occur each time an element passes the threshold for a condition. */
6565
once?: boolean

src/modules/Popup/Popup.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface StrictPopupProps extends StrictPortalProps {
5959
offset?: number | string
6060

6161
/** Events triggering the popup. */
62-
on?: 'hover' | 'click' | 'focus' | 'hover' | 'click' | 'focus'[]
62+
on?: 'hover' | 'click' | 'focus' | ('hover' | 'click' | 'focus')[]
6363

6464
/**
6565
* Called when a close event happens.

0 commit comments

Comments
 (0)