refactor(animations): remove #9100 todos. (#49407)

Breaking change: On `AnimationPlayer.setPosition` the argument is now of type `number`

PR Close #49407
This commit is contained in:
Matthieu Riegler
2023-03-12 23:48:33 +01:00
committed by Dylan Hunn
parent 9bd9a11f4e
commit 40ed152d21
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ export interface AnimationPlayer {
play(): void;
reset(): void;
restart(): void;
setPosition(position: any /** TODO #9100 */): void;
setPosition(position: number): void;
readonly totalTime: number;
}
@@ -1598,7 +1598,7 @@ export class TransitionAnimationPlayer implements AnimationPlayer {
!this.queued && this._player.reset();
}
setPosition(p: any): void {
setPosition(p: number): void {
if (!this.queued) {
this._player.setPosition(p);
}
@@ -78,7 +78,7 @@ export interface AnimationPlayer {
* Sets the position of the animation.
* @param position A 0-based offset into the duration, in milliseconds.
*/
setPosition(position: any /** TODO #9100 */): void;
setPosition(position: number): void;
/**
* Reports the current position of the animation.
* @returns A 0-based offset into the duration, in milliseconds.