1.4.11 • Published 6 months ago

@types/siema v1.4.11

Weekly downloads
956
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for siema 1.4
// Project: https://github.com/pawelgrzybek/siema
// Definitions by: Pavel Puchkov <https://github.com/0x6368656174>
//                 Sam Nau <https://github.com/samnau>
//                 Jonathan Loss <https://github.com/barroudjo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 23 Dec 2021 23:35:49 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Pavel Puchkov, Sam Nau, and Jonathan Loss.

1.4.9

8 months ago

1.4.11

6 months ago

1.4.10

7 months ago

1.4.8

2 years ago

1.4.7

3 years ago

1.4.6

3 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

5 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

7 years ago

1.0.0

7 years ago