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

2.0.31 • Public • Published

Installation

npm install --save @types/swipe

Summary

This package contains type definitions for swipe (https://github.com/thebird/Swipe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swipe.

index.d.ts

interface SwipeOptions {
    startSlide?: number | undefined;
    speed?: number | undefined;
    auto?: number | undefined;
    continuous?: boolean | undefined;
    disableScroll?: boolean | undefined;
    stopPropagation?: boolean | undefined;
    callback?: ((index: number, elem: HTMLElement) => void) | undefined;
    transitionEnd?: ((index: number, elem: HTMLElement) => void) | undefined;
}

declare class Swipe {
    constructor(container: HTMLElement, options?: SwipeOptions);
    prev(): void;
    next(): void;
    getPos(): number;
    getNumSlides(): number;
    kill(): void;
    attachEvents(): void;
    setup(): void;
    slide(index: number, duration: number): void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Andrey Kurdyumov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/swipe

Weekly Downloads

6,346

Version

2.0.31

License

MIT

Unpacked Size

3.88 kB

Total Files

5

Last publish

Collaborators

  • types