Adds typings for simplebar.js

This commit is contained in:
Gregor Woiwode
2015-09-07 11:09:12 +02:00
parent bb051830df
commit 95f34f41c2
2 changed files with 47 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/// <reference path="simplebar.d.ts"/>
/// <reference path="../jquery/jquery.d.ts"/>
// 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
var simplebar = $.fn.simplebar.noConflict();
$.fn.simplebar = simplebar;
Vendored Executable
+37
View File
@@ -0,0 +1,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 SimplebarOpions {
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?: SimplebarOpions): 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?: SimplebarOpions): JQuery;
};
}