Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slick-carousel: Provide typing for the focusOnChange property. #41148

Merged
merged 1 commit into from Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions types/slick-carousel/index.d.ts
Expand Up @@ -230,6 +230,12 @@ interface JQuerySlickOptions {
*/
fade?: boolean;

/**
* Puts focus on slide after change
* Default: false
*/
focusOnChange?: boolean;

/**
* Enable focus on selected element (click)
* Default: false
Expand Down
3 changes: 2 additions & 1 deletion types/slick-carousel/slick-carousel-tests.ts
Expand Up @@ -202,6 +202,7 @@ $("#diaporama").slick({
dotsClass: 'slick-dots',
draggable: true,
fade: false,
focusOnChange: false,
focusOnSelect: false,
easing: "linear",
edgeFriction: 0.15,
Expand Down Expand Up @@ -247,7 +248,7 @@ $("#diaporama").on('beforeChange', function(event, slick: JQuerySlick, currentSl
slick.originalSettings; // $ExpectedType JQuerySlickOptions
slick.initials; // $ExpectedType JQuerySlickInitials

// Some properties of `initials` object (that are merged to the Slick instance)
// Some properties of `initials` object (that are merged to the Slick instance)
slick.animating; // $ExpectedType boolean
slick.initials.animating; // $ExpectedType boolean
slick.dragging; // $ExpectedType boolean
Expand Down