Skip to content

Commit

Permalink
fix(馃悰): Forward the callback parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Dec 15, 2020
1 parent 1aead3f commit 2297f4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type Animation<
now: number,
lastAnimation: PrevState
) => void;
callback?: () => void;
} & State;

export type AnimationParameter<State extends AnimationState = AnimationState> =
Expand Down Expand Up @@ -119,6 +120,7 @@ export const withPause = (
return {
onFrame,
onStart,
callback: nextAnimation.callback,
};
});
};
Expand Down Expand Up @@ -163,6 +165,7 @@ export const withBouncing = (
return {
onFrame,
onStart,
callback: nextAnimation.callback,
};
});
};

0 comments on commit 2297f4b

Please sign in to comment.