Skip to content

Commit

Permalink
Fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Aug 1, 2018
1 parent a19902b commit 524f84b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 524f84b

Please sign in to comment.