mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 06:40:35 +08:00
jquery-match-height tslint
This commit is contained in:
10
types/jquery-match-height/index.d.ts
vendored
10
types/jquery-match-height/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
7
types/jquery-match-height/tslint.json
Normal file
7
types/jquery-match-height/tslint.json
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user