Update type of "AnimationFn"
This commit is contained in:
parent
224ae7c70d
commit
234be5df90
|
|
@ -14,7 +14,9 @@ interface IAnimation {
|
|||
play(player: PlayerObject, time: number): void;
|
||||
}
|
||||
|
||||
type AnimationFn = (player: PlayerObject, time: number) => void;
|
||||
interface AnimationFn {
|
||||
(player: PlayerObject, time: number): void
|
||||
}
|
||||
type Animation = AnimationFn | IAnimation;
|
||||
|
||||
class AnimationHandle implements IAnimation {
|
||||
|
|
|
|||
Loading…
Reference in New Issue