DefinitelyTyped/types/jquery-match-height/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
Note that this *trivially* updates project urls by adding the NPM url to
the end, even when the urls are almost identical or the DT one is
outdated. I'll clean up the urls in a later commit.

This PR is unfinished! Please do not merge it yet.
2019-02-11 17:10:55 -08:00

38 lines
1.1 KiB
TypeScript

// Type definitions for jquery-match-height 0.7
// Project: https://github.com/liabru/jquery-match-height, http://brm.io/jquery-match-height
// Definitions by: Andrea Briganti <https://github.com/kbytesys>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery"/>
interface JQueryMatchHeight {
_throttle: number;
_maintainScroll: boolean;
_groups: any[];
/**
* Set all selected elements to the height of the tallest.
* If the items are on multiple rows, the items of each row will be set to the tallest of that row.
*/
(options?: JQueryMatchHeight.Options): JQuery;
_update(): void;
_rows($item: JQuery): any[];
_beforeUpdate(event: JQueryEventObject, groups: any[]): any;
_afterUpdate(event: JQueryEventObject, groups: any[]): any;
_apply(elements: any, options: any): void;
}
declare namespace JQueryMatchHeight {
interface Options {
byRow?: boolean;
property?: string;
target?: string;
remove?: boolean;
}
}
interface JQuery {
matchHeight: JQueryMatchHeight;
}