Skip to content

Commit b9b5c27

Browse files
goulaheauthePunderWoman
authored andcommitted
refactor(core): enhance AnimationCallbackEvent.animationComplete signature
BREAKING CHANGE: change AnimationCallbackEvent.animationComplete signature Fixes #65613
1 parent 13e019a commit b9b5c27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

goldens/public-api/core/index.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAn
8484
// @public
8585
export type AnimationCallbackEvent = {
8686
target: Element;
87-
animationComplete: Function;
87+
animationComplete: VoidFunction;
8888
};
8989

9090
// @public

packages/core/src/animation/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const ANIMATIONS_DISABLED = new InjectionToken<boolean>(
2525
*
2626
* @publicApi 20.2
2727
*/
28-
export type AnimationCallbackEvent = {target: Element; animationComplete: Function};
28+
export type AnimationCallbackEvent = {target: Element; animationComplete: VoidFunction};
2929

3030
/**
3131
* A [DI token](api/core/InjectionToken) that configures the maximum animation timeout

0 commit comments

Comments
 (0)