Installation
npm install --save @types/react-swipe
Summary
This package contains type definitions for react-swipe (https://github.com/voronianski/react-swipe).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipe.
import * as React from "react";
declare class ReactSwipe extends React.Component<ReactSwipe.Props> {
prev(): void;
next(): void;
getPos(): number;
getNumSlides(): number;
slide(index: number, duration: number): void;
}
declare namespace ReactSwipe {
interface Style {
container: React.CSSProperties;
wrapper: React.CSSProperties;
child: React.CSSProperties;
}
interface Props {
children?: React.ReactNode;
id?: string | undefined;
swipeOptions?: SwipeOptions | undefined;
childCount?: number | undefined;
style?: Style | undefined;
className?: string | undefined;
}
}
export = ReactSwipe;
Additional Details
Credits
These definitions were written by Deividas Bakanas, and Ammar Alakkad.