From 524f84b0afa6e323ec853b023bb7f24aff04ff62 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 1 Aug 2018 21:51:52 +0800 Subject: [PATCH] Fix TS errors --- src/animation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/animation.ts b/src/animation.ts index aebc1f3..76c6a7e 100644 --- a/src/animation.ts +++ b/src/animation.ts @@ -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;