diff --git a/src/animation.ts b/src/animation.ts index 49e887f..8c723fa 100644 --- a/src/animation.ts +++ b/src/animation.ts @@ -83,9 +83,9 @@ class AnimationWrapper implements SubAnimationHandle, IAnimation { export class CompositeAnimation implements IAnimation { - readonly handles: Set = new Set(); + readonly handles: Set = new Set(); - add(animation: Animation): AnimationHandle { + add(animation: Animation): SubAnimationHandle { const handle = new AnimationWrapper(animation); handle.remove = (): void => { this.handles.delete(handle);