From 4f074b2c8546288c9cc169396123f8c5be5c6aa0 Mon Sep 17 00:00:00 2001 From: Suman Lama Date: Wed, 30 May 2018 11:05:53 -0700 Subject: [PATCH] fixes "string to 'ondemand' | 'progressive' issue" --- types/react-slick/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/react-slick/index.d.ts b/types/react-slick/index.d.ts index fc7568ac4c..e9f03b80fa 100644 --- a/types/react-slick/index.d.ts +++ b/types/react-slick/index.d.ts @@ -25,6 +25,8 @@ export interface ResponsiveObject { export type SwipeDirection = "left" | "down" | "right" | "up" | string; +export type LazyLoadTypes = "ondemand" | "progressive"; + export interface Settings { accessibility?: boolean; adaptiveHeight?: boolean; @@ -49,7 +51,7 @@ export interface Settings { focusOnSelect?: boolean; infinite?: boolean; initialSlide?: number; - lazyLoad?: "ondemand" | "progressive"; + lazyLoad?: LazyLoadTypes; nextArrow?: JSX.Element; onEdge?(swipeDirection: SwipeDirection): void; onInit?(): void;