mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 19:20:05 +00:00
jQuery offset method might return undefined (#23821)
This commit is contained in:
2
types/jquery/v1/index.d.ts
vendored
2
types/jquery/v1/index.d.ts
vendored
@@ -1771,7 +1771,7 @@ interface JQuery {
|
||||
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
||||
* @see {@link https://api.jquery.com/offset/#offset}
|
||||
*/
|
||||
offset(): JQueryCoordinates;
|
||||
offset(): JQueryCoordinates | undefined;
|
||||
/**
|
||||
* An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
|
||||
*
|
||||
|
||||
2
types/jquery/v2/index.d.ts
vendored
2
types/jquery/v2/index.d.ts
vendored
@@ -1771,7 +1771,7 @@ interface JQuery {
|
||||
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
||||
* @see {@link https://api.jquery.com/offset/#offset}
|
||||
*/
|
||||
offset(): JQueryCoordinates;
|
||||
offset(): JQueryCoordinates | undefined;
|
||||
/**
|
||||
* An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user