fix return type of CompositeAnimation.add
This commit is contained in:
parent
9f975c3354
commit
c26471b104
|
@ -83,9 +83,9 @@ class AnimationWrapper implements SubAnimationHandle, IAnimation {
|
||||||
|
|
||||||
export class CompositeAnimation implements IAnimation {
|
export class CompositeAnimation implements IAnimation {
|
||||||
|
|
||||||
readonly handles: Set<AnimationHandle & IAnimation> = new Set();
|
readonly handles: Set<SubAnimationHandle & IAnimation> = new Set();
|
||||||
|
|
||||||
add(animation: Animation): AnimationHandle {
|
add(animation: Animation): SubAnimationHandle {
|
||||||
const handle = new AnimationWrapper(animation);
|
const handle = new AnimationWrapper(animation);
|
||||||
handle.remove = (): void => {
|
handle.remove = (): void => {
|
||||||
this.handles.delete(handle);
|
this.handles.delete(handle);
|
||||||
|
|
Loading…
Reference in New Issue