fixes "string to 'ondemand' | 'progressive' issue"

This commit is contained in:
Suman Lama
2018-05-30 11:05:53 -07:00
committed by GitHub
parent 21c6ad0a19
commit 4f074b2c85

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;