# @types/swipe

> TypeScript definitions for swipe

Latest version **2.0.31** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/swipe
pnpm add @types/swipe
yarn add @types/swipe
bun add @types/swipe
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.31 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/swipe
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swipe
- npm.io page: https://npm.io/package/@types/swipe

## Recent versions

- 2.0.31 (latest) — 2023-11-07
- 2.0.28 (ts3.6) — 2021-07-02
- 2.0.27 (ts2.0) — 2016-09-19
- 2.0.30 — 2023-10-18
- 2.0.29 — 2023-09-25
- 2.0.26 — 2016-07-14
- 2.0.25-alpha — 2016-07-08
- 2.0.24-alpha — 2016-07-04
- 2.0.23-alpha — 2016-07-02
- 2.0.22-alpha — 2016-07-02
- 2.0.21-alpha — 2016-07-01
- 2.0.20-alpha — 2016-05-25
- 2.0.19-alpha — 2016-05-20
- 2.0.14-alpha — 2016-05-19
- 2.0.13-alpha — 2016-05-17

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swipe/index.d.ts)
````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](https://github.com/kant2002).

---
_Source: https://npm.io/package/@types/swipe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
