mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
946 B
TypeScript
36 lines
946 B
TypeScript
// Type definitions for react-swipe 6.0
|
|
// Project: https://github.com/voronianski/react-swipe
|
|
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>, Ammar Alakkad <https://github.com/AAlakkad>
|
|
// 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;
|
|
childCount?: number;
|
|
style?: Style;
|
|
className?: string;
|
|
}
|
|
}
|
|
|
|
export = ReactSwipe;
|