mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
React slick definition type
This commit is contained in:
78
react-slick/react-slick.d.ts
vendored
78
react-slick/react-slick.d.ts
vendored
@@ -1,45 +1,45 @@
|
||||
/// <reference path="../react/react-global.d.ts" />
|
||||
/// <reference path="../react/react.d.ts"/>
|
||||
|
||||
declare module 'react-slick' {
|
||||
interface __config {
|
||||
className?: string
|
||||
adaptiveHeight?: boolean
|
||||
arrows?: boolean
|
||||
autoplay?: boolean
|
||||
autoplaySpeed?: number // integer
|
||||
centerMode?: boolean
|
||||
centerPadding?: string | any
|
||||
cssEase?: string | any
|
||||
dots?: boolean
|
||||
dotsClass?: string
|
||||
draggable?: boolean
|
||||
easing?: string
|
||||
fade?: boolean
|
||||
focusOnSelect?: boolean
|
||||
infinite?: boolean // should the gallery wrap around it's contents
|
||||
initialSlide?: number // int
|
||||
lazyLoad?: boolean
|
||||
rtl?: boolean
|
||||
slide?: string
|
||||
slidesToShow?: number // int
|
||||
slidesToScroll?: number // int
|
||||
speed?: number //int
|
||||
swipe?: boolean
|
||||
swipeToSlide?: boolean
|
||||
touchMove?: boolean
|
||||
touchThreshold?: number // int
|
||||
variableWidth?: boolean
|
||||
useCSS?: boolean
|
||||
vertical?: boolean
|
||||
afterChange?: (() => void)
|
||||
beforeChange?: (() => void)
|
||||
slickGoTo?: number // int
|
||||
}
|
||||
interface __config {
|
||||
className?: string
|
||||
adaptiveHeight?: boolean
|
||||
arrows?: boolean
|
||||
autoplay?: boolean
|
||||
autoplaySpeed?: number // integer
|
||||
centerMode?: boolean
|
||||
centerPadding?: string | any
|
||||
cssEase?: string | any
|
||||
dots?: boolean
|
||||
dotsClass?: string
|
||||
draggable?: boolean
|
||||
easing?: string
|
||||
fade?: boolean
|
||||
focusOnSelect?: boolean
|
||||
infinite?: boolean // should the gallery wrap around it's contents
|
||||
initialSlide?: number // int
|
||||
lazyLoad?: boolean
|
||||
rtl?: boolean
|
||||
slide?: string
|
||||
slidesToShow?: number // int
|
||||
slidesToScroll?: number // int
|
||||
speed?: number //int
|
||||
swipe?: boolean
|
||||
swipeToSlide?: boolean
|
||||
touchMove?: boolean
|
||||
touchThreshold?: number // int
|
||||
variableWidth?: boolean
|
||||
useCSS?: boolean
|
||||
vertical?: boolean
|
||||
afterChange?: (() => void)
|
||||
beforeChange?: (() => void)
|
||||
slickGoTo?: number // int
|
||||
}
|
||||
|
||||
interface Slider extends __config {
|
||||
responsive?: { breakpoint: number; settings: __config}[]
|
||||
}
|
||||
interface Slider extends __config {
|
||||
responsive?: { breakpoint: number; settings: __config}[]
|
||||
}
|
||||
|
||||
declare module "react-slick" {
|
||||
var Slider: __React.ClassicComponentClass<Slider>;
|
||||
export = Slider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user