mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-06 18:20:09 +00:00
Merge pull request #34099 from adambowles/patch-3
Add rotationAngle prop to react-swipeable
This commit is contained in:
4
types/react-swipeable/index.d.ts
vendored
4
types/react-swipeable/index.d.ts
vendored
@@ -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 <https://github.com/GiedriusGrabauskas>
|
||||
// Konstantin Vasilev <https://github.com/mctep>
|
||||
// Hiroki Horiuchi <https://github.com/horiuchi>
|
||||
// Adam Bowles <https://github.com/adambowles>
|
||||
// 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<T>;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ class SampleComponent extends React.PureComponent<Swipeable.SwipeableProps> {
|
||||
disabled
|
||||
innerRef={this.swipeRef}
|
||||
onClick={this.handleClick}
|
||||
rotationAngle={0}
|
||||
>
|
||||
<div>
|
||||
This element can be swiped
|
||||
|
||||
Reference in New Issue
Block a user