Skip to content

Commit e385728

Browse files
committed
Add a fix of bug in ISwipeableListItemProps interface
1 parent 9243955 commit e385728

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/module.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ interface ISwipeableListItemProps {
7171
* It can be set for the whole list or for every item. See `threshold` for `SwipeableList`. Value from the `SwipeableListItem` takes precedence.
7272
*/
7373
threshold?: number;
74+
/**
75+
* Specifying that the children property can be undefined. Especially important for React 18 to eliminate the missing children error
76+
*/
77+
children?: ReactNode | undefined;
7478
/**
7579
* Fired after swipe has started (after drag gesture passes the `swipeStartThreshold` distance in pixels).
7680
*/

0 commit comments

Comments
 (0)