mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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
This commit is contained in:
parent
2b93f68f6a
commit
e0abafb1a6
4
df-visible/df-visible.d.ts
vendored
4
df-visible/df-visible.d.ts
vendored
@ -5,6 +5,8 @@
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
type Direction = "horizontal" | "vertical" | "both";
|
||||
|
||||
interface JQuery {
|
||||
/**
|
||||
* Gets the value of a setting.
|
||||
@ -12,5 +14,5 @@ interface JQuery {
|
||||
* @param callback The callback parameter should be a function that looks like this:
|
||||
* function(object details) {...};
|
||||
*/
|
||||
visible(partial?: boolean, hidden?: boolean, direction?: string): boolean;
|
||||
visible(partial?: boolean, hidden?: boolean, direction?: Direction): boolean;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user