forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simplebar.d.ts
37 lines (34 loc) · 954 Bytes
/
simplebar.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
// Type definitions for simplebar.js 1.1.7
// Project: https://github.com/Grsmto/simplebar
// Definitions by: Gregor Woiwode <https://github.com/gregonnet>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface SimplebarOptions {
autoHide?: boolean;
wrapContent?: boolean;
}
interface JQuery {
/**
* Enables simplebar on calling element.
*/
simplebar: {
/**
* Define if scrollbar should be faded out automatically
*
* @param indicator if scrollbar should be faded out automatically.
*/
(options?: SimplebarOptions): JQuery;
};
}
interface JQueryStatic {
/**
* Enables simplebar on calling element.
*/
simplebar: {
/**
* Define if scrollbar should be faded out automatically
*
* @param indicator if scrollbar should be faded out automatically.
*/
(options?: SimplebarOptions): JQuery;
};
}