Files
DefinitelyTyped/simplebar/index.d.ts

38 lines
958 B
TypeScript

// 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/DefinitelyTyped/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;
};
}