DefinitelyTyped/types/nivo-slider/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
Note that this *trivially* updates project urls by adding the NPM url to
the end, even when the urls are almost identical or the DT one is
outdated. I'll clean up the urls in a later commit.

This PR is unfinished! Please do not merge it yet.
2019-02-11 17:10:55 -08:00

40 lines
1.2 KiB
TypeScript

// Type definitions for Nivo Slider 3.2
// Project: https://github.com/Codeinwp/Nivo-Slider-jQuery, https://github.com/gilbitron/nivo-slider
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <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;
slices?: number;
boxCols?: number;
boxRows?: number;
animSpeed?: number;
pauseTime?: number;
startSlide?: number;
directionNav?: boolean;
controlNav?: boolean;
controlNavThumbs?: boolean;
pauseOnHover?: boolean;
manualAdvance?: boolean;
prevText?: string;
nextText?: string;
randomStart?: boolean;
beforeChange?: () => void;
afterChange?: () => void;
slideshowEnd?: () => void;
lastSlide?: () => void;
afterLoad?: () => void;
}
declare global {
interface JQuery {
nivoSlider(options?: Options): JQuery;
}
}