@types/react-swipe
TypeScript icon, indicating that this package has built-in type declarations

6.0.4 • Public • Published

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.

index.d.ts

/// <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 {
        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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-swipe

Weekly Downloads

5,090

Version

6.0.4

License

MIT

Unpacked Size

4.42 kB

Total Files

5

Last publish

Collaborators

  • types