From 95be28fed54e4e47ba3e42a9c563f6bab23d2b32 Mon Sep 17 00:00:00 2001 From: Markus Fasselt Date: Tue, 12 Jun 2018 22:28:11 +0200 Subject: [PATCH] Update OwlCarousel2 typings I updated the options according to https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html. - added `lazyLoadEager` and removed `lazyContent` ([source](https://github.com/OwlCarousel2/OwlCarousel2/commit/44571f95d5850d19d27fa634d443d9215eae7699#diff-16d5a8e7f1181df10837309167888eed)) - renamed `dotData` to `dotsData` ([source](https://github.com/OwlCarousel2/OwlCarousel2/commit/1915cb0d415005f0df118919d1e433221e36a764#diff-16d5a8e7f1181df10837309167888eed)) - added checkVisible ([source](https://github.com/OwlCarousel2/OwlCarousel2/commit/e5ea9a506994c18ea2b0575df20bc6dfeb79feb0#diff-16d5a8e7f1181df10837309167888eed)) - added `slideTransition` ([source](https://github.com/OwlCarousel2/OwlCarousel2/commit/40e28e09e44dfee4cf6d9c5e31bf29770ea0ec20#diff-16d5a8e7f1181df10837309167888eed)) --- types/owl.carousel/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/owl.carousel/index.d.ts b/types/owl.carousel/index.d.ts index 0295b3fe5b..b1b093ef77 100644 --- a/types/owl.carousel/index.d.ts +++ b/types/owl.carousel/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for owl.carousel 2.2 +// Type definitions for owl.carousel 2.3 // Project: https://github.com/OwlCarousel2/OwlCarousel2 // Definitions by: Ismael Gorissen // Kenneth Ceyer @@ -31,9 +31,9 @@ declare namespace OwlCarousel { slideBy?: number | string; dots?: boolean; dotsEach?: number | boolean; - dotData?: boolean; + dotsData?: boolean; lazyLoad?: boolean; - lazyContent?: boolean; + lazyLoadEager?: number; autoplay?: boolean; autoplayTimeout?: number; autoplayHoverPause?: boolean; @@ -59,6 +59,8 @@ declare namespace OwlCarousel { stageElement?: string; navContainer?: string | boolean; dotsContainer?: string | boolean; + checkVisible?: boolean; + slideTransition?: string; // CLASSES refreshClass?: string; loadingClass?: string;