Skip to content

Commit 3ddeb66

Browse files
author
Marek Rozmus
committed
Add optional flags for callbacks
1 parent d8fd22d commit 3ddeb66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/module.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ interface ISwipeableListItemProps {
2020
scrollStartThreshold?: number;
2121
swipeStartThreshold?: number;
2222
threshold?: number;
23-
onSwipeStart: () => void;
24-
onSwipeEnd: () => void;
25-
onSwipeProgress: (progress: number) => void;
23+
onSwipeStart?: () => void;
24+
onSwipeEnd?: () => void;
25+
onSwipeProgress?: (progress: number) => void;
2626
}
2727

2828
export class SwipeableListItem extends React.Component<

0 commit comments

Comments
 (0)