mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #32774 from AAlakkad/master
Update react-swipe definition to add childCount prop
This commit is contained in:
Vendored
+3
-2
@@ -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 <https://github.com/DeividasBakanas>
|
||||
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>, Ammar Alakkad <https://github.com/AAlakkad>
|
||||
// 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;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ class ReactSwipeTest extends React.PureComponent {
|
||||
id="test-carousel"
|
||||
swipeOptions={swipeOptions}
|
||||
style={style}
|
||||
childCount={3}
|
||||
ref={(swipeComponent) => { this.swipeComponent = swipeComponent; }}
|
||||
>
|
||||
<div>PANE 1</div>
|
||||
|
||||
Reference in New Issue
Block a user