From ffde14a6a8b3b912d87c3310833386113032ebc8 Mon Sep 17 00:00:00 2001 From: Adam Bowles Date: Fri, 22 Mar 2019 10:46:14 +0000 Subject: [PATCH 1/2] Add rotationAngle prop --- types/react-swipeable/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/react-swipeable/index.d.ts b/types/react-swipeable/index.d.ts index fc6326deae..7a53884bd3 100644 --- a/types/react-swipeable/index.d.ts +++ b/types/react-swipeable/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for react-swipeable 4.2 +// Type definitions for react-swipeable 4.3 // Project: https://github.com/dogfessional/react-swipeable // Definitions by: Giedrius Grabauskas // Konstantin Vasilev // Hiroki Horiuchi +// Adam Bowles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -36,6 +37,7 @@ declare namespace ReactSwipeable { nodeName?: string; trackMouse?: boolean; disabled?: boolean; + rotationAngle?: number; innerRef?: React.Ref; children?: React.ReactNode; } From 7485751effc84f934903989f6cc8e0d1775ded44 Mon Sep 17 00:00:00 2001 From: Adam Bowles Date: Fri, 22 Mar 2019 10:48:29 +0000 Subject: [PATCH 2/2] Add rotationAngle prop to test --- types/react-swipeable/react-swipeable-tests.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-swipeable/react-swipeable-tests.tsx b/types/react-swipeable/react-swipeable-tests.tsx index 87294f001e..0479a7d3d5 100644 --- a/types/react-swipeable/react-swipeable-tests.tsx +++ b/types/react-swipeable/react-swipeable-tests.tsx @@ -39,6 +39,7 @@ class SampleComponent extends React.PureComponent { disabled innerRef={this.swipeRef} onClick={this.handleClick} + rotationAngle={0} >
This element can be swiped