jquery-match-height tslint

This commit is contained in:
Andrea Briganti
2017-05-24 16:37:04 +02:00
parent 5b4c1f8832
commit 3248ac28b4
3 changed files with 17 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
// Type definitions for jquery-match-height v0.7.2
// Type definitions for jquery-match-height 0.7
// Project: https://github.com/liabru/jquery-match-height
// Definitions by: Andrea Briganti <https://github.com/kbytesys/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -11,10 +11,10 @@
declare namespace JQueryMatchHeight {
interface Options {
byRow?: boolean,
property?: string,
target?: string,
remove?: boolean
byRow?: boolean;
property?: string;
target?: string;
remove?: boolean;
}
}

View File

@@ -16,11 +16,13 @@ $.fn.matchHeight._rows($('.containers'));
$('.containers').matchHeight({ remove: true });
$.fn.matchHeight._beforeUpdate = function(event: any, groups: any) {
// tslint:disable-next-line no-used-variable
$.fn.matchHeight._beforeUpdate = (event: any, groups: any) => {
// do something before any updates are applied
};
$.fn.matchHeight._afterUpdate = function(event: any, groups: any) {
// tslint:disable-next-line no-used-variable
$.fn.matchHeight._afterUpdate = (event: any, groups: any) => {
// do something after all updates are applied
};
@@ -33,4 +35,4 @@ $.fn.matchHeight._throttle = 80;
$.fn.matchHeight._maintainScroll = true;
$.fn.matchHeight._groups
$.fn.matchHeight._groups;

View File

@@ -0,0 +1,7 @@
{
"extends": "dtslint/dt.json",
"rules": {
// This package uses the Function type, and it will take effort to fix.
"ban-types": false
}
}