diff --git a/types/react-swipe/index.d.ts b/types/react-swipe/index.d.ts index 8b5c2d2a2d..dfa1c6abd5 100644 --- a/types/react-swipe/index.d.ts +++ b/types/react-swipe/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for react-swipe 5.0 +// Type definitions for react-swipe 6.0 // Project: https://github.com/voronianski/react-swipe -// Definitions by: Deividas Bakanas +// Definitions by: Deividas Bakanas , Ammar Alakkad // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -26,6 +26,7 @@ declare namespace ReactSwipe { interface Props { id?: string; swipeOptions?: SwipeOptions; + childCount?: number; style?: Style; className?: string; } diff --git a/types/react-swipe/react-swipe-tests.tsx b/types/react-swipe/react-swipe-tests.tsx index 2948141ee6..2da11d0119 100644 --- a/types/react-swipe/react-swipe-tests.tsx +++ b/types/react-swipe/react-swipe-tests.tsx @@ -53,6 +53,7 @@ class ReactSwipeTest extends React.PureComponent { id="test-carousel" swipeOptions={swipeOptions} style={style} + childCount={3} ref={(swipeComponent) => { this.swipeComponent = swipeComponent; }} >
PANE 1