Files
DefinitelyTyped/df-visible/df-visible.d.ts
Andrey Lipatkin e0abafb1a6 Narrowing down possible values for direction parameter (#9352)
* Fixing favIconUrl property name typo for TabChangeInfo class

* Empty commit to trigger Travis CI

* Made direction parameter more specific by using string literal typing
2016-05-17 23:35:03 -07:00

19 lines
651 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
/// <reference path="../jquery/jquery.d.ts" />
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): boolean;
}