mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
fixes "string to 'ondemand' | 'progressive' issue"
This commit is contained in:
4
types/react-slick/index.d.ts
vendored
4
types/react-slick/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user