npm.io
6.0.4 • Published 3 years ago

@types/react-swipe

Licence
MIT
Version
6.0.4
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.5K

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.