DefinitelyTyped/types/react-swipe/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01:00

35 lines
872 B
TypeScript

// Type definitions for react-swipe 5.0
// Project: https://github.com/voronianski/react-swipe
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="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 {
id?: string;
swipeOptions?: SwipeOptions;
style?: Style;
className?: string;
}
}
export = ReactSwipe;