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:
Andrey Lipatkin 2016-05-18 09:35:03 +03:00 committed by Masahiro Wakame
parent 2b93f68f6a
commit e0abafb1a6

View File

@ -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;
}