mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix test error for slick 1.5.8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
///<reference path="/jquery.slick/slick.d.ts" />
|
||||
///<reference path="../jquery.slick/slick.d.ts" />
|
||||
|
||||
|
||||
// --------------------------------------------------------
|
||||
@@ -196,9 +196,8 @@ $("#diaporama").slick({
|
||||
centerMode: false,
|
||||
centerPadding: "50px",
|
||||
cssEase: "ease",
|
||||
customPaging: (slider, i: number) => {
|
||||
console.log("customPaging slider", slider);
|
||||
console.log("customPaging index", i);
|
||||
customPaging: (slider, i) => {
|
||||
return "customPaging slider " + slider + " customPaging index " + i;
|
||||
},
|
||||
dots: false,
|
||||
draggable: true,
|
||||
|
||||
Vendored
+8
-1
@@ -83,7 +83,7 @@ interface JQuerySlickOptions {
|
||||
* Custom paging templates. See source for use example.
|
||||
* Default: n/a
|
||||
*/
|
||||
customPaging?: (slider, i: number) => string;
|
||||
customPaging?: (slider: any, i: number) => string;
|
||||
|
||||
/**
|
||||
* Show dot indicators
|
||||
@@ -272,6 +272,13 @@ interface JQuery {
|
||||
slick(): JQuery;
|
||||
slick(options: JQuerySlickOptions): JQuery;
|
||||
|
||||
/**
|
||||
* Trigger non-specialized signature method
|
||||
* @param methodName
|
||||
* @param arg
|
||||
*/
|
||||
slick(methodName: string, ...arg: any[]): any;
|
||||
|
||||
/**
|
||||
* Returns the current slide index
|
||||
* @param methodName The name of the method
|
||||
|
||||
Reference in New Issue
Block a user