# @types/siema

> TypeScript definitions for siema

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

## Install

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

## 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 | 1.4.11 |
| Published | 2023-11-07 |
| First published | 2017-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.4.11 (latest) — 2023-11-07
- 1.4.8 (ts3.8) — 2021-12-24
- 1.4.7 (ts3.6) — 2021-07-06
- 1.4.6 (ts3.2) — 2020-11-16
- 1.4.4 (ts2.8) — 2019-11-26
- 1.4.3 (ts2.0) — 2019-02-13
- 1.4.10 — 2023-10-18
- 1.4.9 — 2023-09-25
- 1.4.5 — 2020-09-17
- 1.4.2 — 2017-12-29
- 1.4.1 — 2017-12-23
- 1.4.0 — 2017-10-03
- 1.0.0 — 2017-01-06

## README

# Installation
> `npm install --save @types/siema`

# Summary
This package contains type definitions for siema (https://github.com/pawelgrzybek/siema).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/siema.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/siema/index.d.ts)
````ts
export default class Siema {
    currentSlide: number;
    perPage: number;

    constructor(options?: SiemaOptions);

    next(index?: number, callback?: () => void): void;
    prev(index?: number, callback?: () => void): void;
    goTo(index: number, callback?: () => void): void;
    remove(index: number, callback?: () => void): void;
    insert(item: HTMLElement, index: number, callback?: () => void): void;
    prepend(item: HTMLElement, callback?: () => void): void;
    append(item: HTMLElement, callback?: () => void): void;
    destroy(restoreMarkup?: boolean, callback?: () => void): void;
}

export interface PageInterface {
    [key: number]: number;
}

export interface SiemaOptions {
    selector?: string | HTMLElement | undefined;
    duration?: number | undefined;
    easing?: string | undefined;
    perPage?: number | PageInterface | undefined;
    startIndex?: number | undefined;
    draggable?: boolean | undefined;
    multipleDrag?: boolean | undefined;
    threshold?: number | undefined;
    loop?: boolean | undefined;
    rtl?: boolean | undefined;
    onInit?(): void;
    onChange?(): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Pavel Puchkov](https://github.com/0x6368656174), [Sam Nau](https://github.com/samnau), and [Jonathan Loss](https://github.com/barroudjo).

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