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.