2.0.31 • Published 2 years ago
@types/swipe v2.0.31
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
// Type definitions for Swipe 2.0
// Project: https://github.com/thebird/Swipe
// Definitions by: Andrey Kurdyumov <https://github.com/kant2002>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Fri, 02 Jul 2021 22:33:19 GMT
- Dependencies: none
- Global values:
Swipe
Credits
These definitions were written by Andrey Kurdyumov.
2.0.29
2 years ago
2.0.31
2 years ago
2.0.30
2 years ago
2.0.28
4 years ago
2.0.27
9 years ago
2.0.26
9 years ago
2.0.25-alpha
9 years ago
2.0.24-alpha
9 years ago
2.0.23-alpha
9 years ago
2.0.22-alpha
9 years ago
2.0.21-alpha
9 years ago
2.0.20-alpha
9 years ago
2.0.19-alpha
9 years ago
2.0.14-alpha
9 years ago
2.0.13-alpha
9 years ago