Fix TS errors

This commit is contained in:
Pig Fang 2018-08-01 21:51:52 +08:00
parent a19902bf03
commit 524f84b0af
1 changed files with 4 additions and 4 deletions

View File

@ -10,16 +10,16 @@ function invokeAnimation(animation: Animation, player: PlayerObject, time: numbe
}
}
interface IAnimation {
export interface IAnimation {
play(player: PlayerObject, time: number): void;
}
interface AnimationFn {
export interface AnimationFn {
(player: PlayerObject, time: number): void
}
type Animation = AnimationFn | IAnimation;
export type Animation = AnimationFn | IAnimation;
class AnimationHandle implements IAnimation {
export class AnimationHandle implements IAnimation {
public paused = false;
public speed: number = 1.0;