refactor(animation): rename AnimationOnFinishOptions to AnimationCallbackOptions (#19551)

This commit is contained in:
Liam DeBeasi
2019-10-04 12:19:23 -04:00
committed by GitHub
parent bfb704e2d2
commit 17614cdcb3
2 changed files with 5 additions and 5 deletions

View File

@ -210,7 +210,7 @@ export interface Animation {
* Add a callback to be run
* upon the animation ending
*/
onFinish(callback: AnimationLifecycle, opts?: AnimationOnFinishOptions): Animation;
onFinish(callback: AnimationLifecycle, opts?: AnimationCallbackOptions): Animation;
/** @deprecated */
playAsync(): Promise<void>;
@ -220,7 +220,7 @@ export interface Animation {
export type AnimationLifecycle = (currentStep: 0 | 1, animation: Animation) => void;
export interface AnimationOnFinishOptions {
export interface AnimationCallbackOptions {
oneTimeCallback: boolean;
}