mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* df-visible: Fourth argument Newer version of jquery-visible adds a fourth argument to the jQuery extended method. * df-visible: added fourth argument test
20 lines
684 B
TypeScript
20 lines
684 B
TypeScript
// Type definitions for jquery-visible
|
|
// Project: https://github.com/customd/jquery-visible
|
|
// Definitions by: Andrey Lipatkin <https://github.com/Litee>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="jquery" />
|
|
|
|
type Direction = "horizontal" | "vertical" | "both";
|
|
|
|
interface JQuery {
|
|
/**
|
|
* Gets the value of a setting.
|
|
* @param details Which setting to consider.
|
|
* @param callback The callback parameter should be a function that looks like this:
|
|
* function(object details) {...};
|
|
*/
|
|
visible(partial?: boolean, hidden?: boolean, direction?: Direction, container?: JQuery): boolean;
|
|
}
|