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