diff --git a/packages/core/src/types/functions.ts b/packages/core/src/types/functions.ts index 9dc420ae87..51b9e3c7cd 100644 --- a/packages/core/src/types/functions.ts +++ b/packages/core/src/types/functions.ts @@ -82,9 +82,7 @@ type EventHandler< TResult extends Readable = any, TSource = unknown, Item = undefined, -> = Item extends undefined - ? (result: AnimationResult, ctrl: TSource, item?: Item) => void - : (result: AnimationResult, ctrl: TSource, item: Item) => void +> = (result: AnimationResult, ctrl: TSource, item: Item) => void /** * Called before the first frame of every animation.