From 1ec9d098d95df90c5af0e02d1fc374e735fa96b2 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Fri, 9 Feb 2018 12:44:49 +0800 Subject: [PATCH] change `AnimationHandle` to interface --- types/animation.d.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/types/animation.d.ts b/types/animation.d.ts index 20e8620..fb4b9fe 100644 --- a/types/animation.d.ts +++ b/types/animation.d.ts @@ -12,16 +12,12 @@ export function invokeAnimation( time: number, ): void; -declare class AnimationHandle implements IAnimation { - public readonly animation: Animation; - public paused: boolean; - public speed: number; +export interface AnimationHandle extends IAnimation { + readonly animation: Animation; + paused: boolean; + speed: number; - constructor(animation: Animation); - - public play(player: PlayerObject, time: number): void; - - public reset(): void; + reset(): void; } export class CompositeAnimation implements IAnimation {