change `AnimationHandle` to interface

This commit is contained in:
yushijinhun 2018-02-09 12:44:49 +08:00
parent 741dc9e3ef
commit 1ec9d098d9
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 5 additions and 9 deletions

14
types/animation.d.ts vendored
View File

@ -12,16 +12,12 @@ export function invokeAnimation(
time: number, time: number,
): void; ): void;
declare class AnimationHandle implements IAnimation { export interface AnimationHandle extends IAnimation {
public readonly animation: Animation; readonly animation: Animation;
public paused: boolean; paused: boolean;
public speed: number; speed: number;
constructor(animation: Animation); reset(): void;
public play(player: PlayerObject, time: number): void;
public reset(): void;
} }
export class CompositeAnimation implements IAnimation { export class CompositeAnimation implements IAnimation {