Merge pull request #26149 from sumanla13a/patch-1

React-slick "cannot assign string to 'ondemand' | 'progressive' issue"
This commit is contained in:
Benjamin Lichtman
2018-05-31 09:21:18 -07:00
committed by GitHub
+3 -1
View File
@@ -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;