From e0abafb1a6ff652f7ff967120e312d5c1916eaef Mon Sep 17 00:00:00 2001 From: Andrey Lipatkin Date: Wed, 18 May 2016 09:35:03 +0300 Subject: [PATCH] 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 --- df-visible/df-visible.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/df-visible/df-visible.d.ts b/df-visible/df-visible.d.ts index 24de14b71e..b8d05fe360 100644 --- a/df-visible/df-visible.d.ts +++ b/df-visible/df-visible.d.ts @@ -5,6 +5,8 @@ /// +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; }