mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Added string overloads as well as support for innerWidth and innerHeight.
This commit is contained in:
Vendored
+47
-5
@@ -1418,11 +1418,39 @@ interface JQuery {
|
||||
*/
|
||||
innerHeight(): number;
|
||||
|
||||
/**
|
||||
* Sets the inner height on elements in the set of matched elements, including padding but not border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
innerHeight(height: number): JQuery;
|
||||
|
||||
/**
|
||||
* Sets the inner height on elements in the set of matched elements, including padding but not border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
innerHeight(height: string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed width for the first element in the set of matched elements, including padding but not border.
|
||||
*/
|
||||
innerWidth(): number;
|
||||
|
||||
/**
|
||||
* Sets the inner width on elements in the set of matched elements, including padding but not border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
innerWidth(width: number): JQuery;
|
||||
|
||||
/**
|
||||
* Sets the inner width on elements in the set of matched elements, including padding but not border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
innerWidth(width: string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
||||
*/
|
||||
@@ -1454,6 +1482,13 @@ interface JQuery {
|
||||
*/
|
||||
outerHeight(height: number): JQuery;
|
||||
|
||||
/**
|
||||
* Sets the outer height on elements in the set of matched elements, including padding and border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
outerHeight(height: string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed width for the first element in the set of matched elements, including padding and border.
|
||||
*
|
||||
@@ -1461,13 +1496,20 @@ interface JQuery {
|
||||
*/
|
||||
outerWidth(includeMargin?: boolean): number;
|
||||
|
||||
/**
|
||||
* Sets the outer width on elements in the set of matched elements, including padding and border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
/**
|
||||
* Sets the outer width on elements in the set of matched elements, including padding and border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
outerWidth(width: number): JQuery;
|
||||
|
||||
/**
|
||||
* Sets the outer width on elements in the set of matched elements, including padding and border.
|
||||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
outerWidth(width: string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user