Installation
npm install --save @types/nivo-slider
Summary
This package contains type definitions for nivo-slider (https://github.com/Codeinwp/Nivo-Slider-jQuery).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nivo-slider.
index.d.ts
/// <reference types="jquery" />
export type EffectType =
| "sliceDown"
| "sliceDownLeft"
| "sliceUp"
| "sliceUpLeft"
| "sliceUpDown"
| "sliceUpDownLeft"
| "fold"
| "fade"
| "random"
| "slideInRight"
| "slideInLeft"
| "boxRandom"
| "boxRain"
| "boxRainReverse"
| "boxRainGrow"
| "boxRainGrowReverse";
export interface Options {
effect?: EffectType | undefined;
slices?: number | undefined;
boxCols?: number | undefined;
boxRows?: number | undefined;
animSpeed?: number | undefined;
pauseTime?: number | undefined;
startSlide?: number | undefined;
directionNav?: boolean | undefined;
controlNav?: boolean | undefined;
controlNavThumbs?: boolean | undefined;
pauseOnHover?: boolean | undefined;
manualAdvance?: boolean | undefined;
prevText?: string | undefined;
nextText?: string | undefined;
randomStart?: boolean | undefined;
beforeChange?: (() => void) | undefined;
afterChange?: (() => void) | undefined;
slideshowEnd?: (() => void) | undefined;
lastSlide?: (() => void) | undefined;
afterLoad?: (() => void) | undefined;
}
declare global {
interface JQuery {
nivoSlider(options?: Options): JQuery;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Anderson Friaça.