mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
jQuery: JSDoc'd innerWidth / innerWidth
removed invalid overloads
This commit is contained in:
@@ -1751,13 +1751,11 @@ function test_index() {
|
||||
function test_innerHeight() {
|
||||
var p = $("p:first");
|
||||
$("p:last").text("innerHeight:" + p.innerHeight());
|
||||
p.innerHeight(p.innerHeight() * 2).innerHeight();
|
||||
}
|
||||
|
||||
function test_innerWidth() {
|
||||
var p = $("p:first");
|
||||
$("p:last").text("innerWidth:" + p.innerWidth());
|
||||
p.innerWidth(p.innerWidth() * 2).innerWidth();
|
||||
}
|
||||
|
||||
function test_outerHeight() {
|
||||
|
||||
8
jquery/jquery.d.ts
vendored
8
jquery/jquery.d.ts
vendored
@@ -1013,11 +1013,15 @@ interface JQuery {
|
||||
*/
|
||||
height(func: (index: number, height: number) => string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed height for the first element in the set of matched elements, including padding but not border.
|
||||
*/
|
||||
innerHeight(): number;
|
||||
innerHeight(value: number): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed width for the first element in the set of matched elements, including padding but not border.
|
||||
*/
|
||||
innerWidth(): number;
|
||||
innerWidth(value: number): JQuery;
|
||||
|
||||
offset(): { left: number; top: number; };
|
||||
offset(coordinates: any): JQuery;
|
||||
|
||||
Reference in New Issue
Block a user