Skip to content

Commit

Permalink
fix(Popup|Visibility): update types definitions for props (#4019)
Browse files Browse the repository at this point in the history
  • Loading branch information
daigof authored Aug 4, 2020
1 parent f61cfc6 commit fc2fd4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/behaviors/Visibility/Visibility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface StrictVisibilityProps {
* Value that context should be adjusted in pixels. Useful for making content appear below content fixed to the
* page.
*/
offset?: number | string | number | string[]
offset?: number | string | (number | string)[]

/** When set to false a callback will occur each time an element passes the threshold for a condition. */
once?: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Popup/Popup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface StrictPopupProps extends StrictPortalProps {
offset?: number | string

/** Events triggering the popup. */
on?: 'hover' | 'click' | 'focus' | 'hover' | 'click' | 'focus'[]
on?: 'hover' | 'click' | 'focus' | ('hover' | 'click' | 'focus')[]

/**
* Called when a close event happens.
Expand Down

0 comments on commit fc2fd4c

Please sign in to comment.