-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
36 lines (32 loc) · 931 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
declare module '*.module.scss' {
const classes: { [key: string]: string };
export default classes;
}
declare module 'react-slick' {
import * as React from 'react';
interface SliderProps {
dots?: boolean;
infinite?: boolean;
speed?: number;
slidesToShow?: number;
slidesToScroll?: number;
autoplay?: boolean;
autoplaySpeed?: number;
arrows?: boolean;
className?: string;
adaptiveHeight?: boolean;
centerMode?: boolean;
centerPadding?: string;
draggable?: boolean;
fade?: boolean;
focusOnSelect?: boolean;
pauseOnHover?: boolean;
responsive?: Array<{
breakpoint: number;
settings: Partial<SliderProps>;
}>;
// Thêm các props khác nếu cần
}
class Slider extends React.Component<SliderProps> { }
export default Slider;
}