From 574ea0954ec287413f4beb5233e06bca21899b24 Mon Sep 17 00:00:00 2001 From: Damian Senn Date: Mon, 26 Feb 2018 20:47:25 +0100 Subject: [PATCH] jQuery offset method might return undefined (#23821) --- types/jquery/v1/index.d.ts | 2 +- types/jquery/v2/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jquery/v1/index.d.ts b/types/jquery/v1/index.d.ts index ee66781019..8cbc9c5789 100644 --- a/types/jquery/v1/index.d.ts +++ b/types/jquery/v1/index.d.ts @@ -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. * diff --git a/types/jquery/v2/index.d.ts b/types/jquery/v2/index.d.ts index 9d30f12c38..2f9a79adf4 100644 --- a/types/jquery/v2/index.d.ts +++ b/types/jquery/v2/index.d.ts @@ -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. *