From 070c441c44daa0986d55e8e7bd1e070dc6b8eb1e Mon Sep 17 00:00:00 2001 From: jon lepage Date: Tue, 27 Aug 2024 21:31:49 -0400 Subject: [PATCH] type: add undefined for getById --- types/gsap-core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/gsap-core.d.ts b/types/gsap-core.d.ts index 8c5e9c17..edf666e5 100644 --- a/types/gsap-core.d.ts +++ b/types/gsap-core.d.ts @@ -364,7 +364,7 @@ declare namespace gsap { * @memberof gsap * @link https://greensock.com/docs/v3/GSAP/gsap.getById() */ - function getById(id: string | number): T; + function getById(id: string | number): T|undefined; /** * Gets the specified property of the target (or first of the targets) if it exists.