From 7eb8f8c7d287eaf95e8d57c7018e0ad7300d06e3 Mon Sep 17 00:00:00 2001 From: Ammar Alakkad Date: Tue, 5 Feb 2019 12:32:53 +0300 Subject: [PATCH 1/4] Add childCount to react-swipe props --- types/react-swipe/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-swipe/index.d.ts b/types/react-swipe/index.d.ts index 8b5c2d2a2d..0156b18ab0 100644 --- a/types/react-swipe/index.d.ts +++ b/types/react-swipe/index.d.ts @@ -1,4 +1,4 @@ -// 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: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -26,6 +26,7 @@ declare namespace ReactSwipe { interface Props { id?: string; swipeOptions?: SwipeOptions; + childCount?: number; style?: Style; className?: string; } From 43f4e3fc5b88cd956149d35d20c2a9bc7e9d9f64 Mon Sep 17 00:00:00 2001 From: Ammar Alakkad Date: Tue, 5 Feb 2019 12:34:14 +0300 Subject: [PATCH 2/4] Add childCount prop to ReactSwipe tests --- types/react-swipe/react-swipe-tests.tsx | 1 + 1 file changed, 1 insertion(+) 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
From a05d903becd7324d23a958163022f60f0bddff00 Mon Sep 17 00:00:00 2001 From: Ammar Alakkad Date: Tue, 5 Feb 2019 12:36:14 +0300 Subject: [PATCH 3/4] Update index.d.ts --- types/react-swipe/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-swipe/index.d.ts b/types/react-swipe/index.d.ts index 0156b18ab0..55acce743b 100644 --- a/types/react-swipe/index.d.ts +++ b/types/react-swipe/index.d.ts @@ -1,6 +1,6 @@ // 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 From 28d02d9cf27fdc9ae89683771b2b75cd46e2c09d Mon Sep 17 00:00:00 2001 From: Ammar Alakkad Date: Tue, 5 Feb 2019 12:53:50 +0300 Subject: [PATCH 4/4] Remove extra whitespace --- types/react-swipe/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-swipe/index.d.ts b/types/react-swipe/index.d.ts index 55acce743b..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 6.0 // Project: https://github.com/voronianski/react-swipe -// Definitions by: Deividas Bakanas , Ammar Alakkad +// Definitions by: Deividas Bakanas , Ammar Alakkad // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8