-
Notifications
You must be signed in to change notification settings - Fork 297
/
index.d.ts
65 lines (59 loc) · 1.82 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Type definitions for react-awesome-slider
// Project: https://github.com/rcaferati/react-awesome-slider
// Definitions by: Rafael Caferati <https://github.com/rcaferati>
// TypeScript Version: 3.0.0
declare module 'react-awesome-slider' {
import React, { Component } from 'react';
export interface AwesomeSliderInfo {
slides: number;
currentIndex: number;
currentSlide: HTMLElement;
currentMedia: React.ReactNode;
element: HTMLElement;
}
export interface AwesomeSliderRequestEventArgs extends AwesomeSliderInfo {
nextIndex: number;
}
export interface AwesomeSliderStartEventArgs extends AwesomeSliderRequestEventArgs {
nextSlide: HTMLElement;
nextMedia: React.ReactNode;
}
export interface AwesomeSliderProps {
activityColor?: string;
animation?: string;
bullets?: boolean;
buttonContentLeft?: React.ReactNode;
buttonContentRight?: React.ReactNode;
buttons?: boolean;
children?: React.ReactNode;
className?: string;
controlsReturnDelay?: number;
cssModule?: object;
customContent?: React.ReactNode;
disabled?: boolean;
fillParent?: boolean;
infinite?: boolean;
media?: any;
name?: string;
onFirstMount?(e: AwesomeSliderInfo): void;
onLoadStart?(): void;
onResetSlider?(): void;
onStartupRelease?(): void;
onTransitionEnd?(e: AwesomeSliderInfo): void;
onTransitionRequest?(e: AwesomeSliderRequestEventArgs): void;
onTransitionStart?(e: AwesomeSliderStartEventArgs): void;
organicArrows?: boolean;
rootElement?: string;
selected?: string | number;
startup?: boolean;
startupDelay?: number;
startupScreen?: object;
style?: object;
transitionDelay?: number;
mobileTouch?: boolean;
}
export default class AwesomeSlider extends Component<
AwesomeSliderProps,
{}
> {}
}