Skip to content

Commit 823fa52

Browse files
author
Marek Rozmus
committed
Update typings for animations
1 parent e5a9db8 commit 823fa52

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/module.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import * as React from 'react';
22

3-
interface ISwipeableListProps {
3+
enum ActionAnimation {
4+
RETURN = 'RETURN',
5+
REMOVE = 'REMOVE',
6+
NONE = 'NONE'
7+
}
8+
9+
export interface ISwipeableListProps {
410
scrollStartThreshold?: number;
511
swipeStartThreshold?: number;
612
threshold?: number;
@@ -10,6 +16,7 @@ export class SwipeableList extends React.Component<ISwipeableListProps> {}
1016

1117
interface ISwipeActionProps {
1218
action: () => void;
19+
actionAnimation?: ActionAnimation;
1320
content: React.ReactNode;
1421
}
1522

0 commit comments

Comments
 (0)