fix(animation): typescript interface has correct return value for progress methods (#23536)

This commit is contained in:
Liam DeBeasi
2021-06-29 16:36:51 -04:00
committed by GitHub
parent 0b5c470b98
commit f3d6abbc1b

View File

@ -29,9 +29,9 @@ export interface Animation {
*/ */
destroy(clearStyleSheets?: boolean): void; destroy(clearStyleSheets?: boolean): void;
progressStart(forceLinearEasing: boolean, step?: number): void; progressStart(forceLinearEasing?: boolean, step?: number): Animation;
progressStep(step: number): void; progressStep(step: number): Animation;
progressEnd(playTo: 0 | 1 | undefined, step: number, dur?: number): void; progressEnd(playTo: 0 | 1 | undefined, step: number, dur?: number): Animation;
from(property: string, value: any): Animation; from(property: string, value: any): Animation;
to(property: string, value: any): Animation; to(property: string, value: any): Animation;