simplify types
This commit is contained in:
parent
c483ae33ee
commit
fcd7e58688
|
|
@ -4,13 +4,7 @@ type AnimationFn = (player: PlayerObject, time: number) => void
|
|||
interface IAnimation {
|
||||
play(player: PlayerObject, time: number): void
|
||||
}
|
||||
export type Animation =
|
||||
| AnimationFn
|
||||
| IAnimation
|
||||
| {
|
||||
play(player: PlayerObject, time: number): void
|
||||
[x: string]: any
|
||||
}
|
||||
export type Animation = AnimationFn | IAnimation
|
||||
|
||||
declare function invokeAnimation(
|
||||
animation: Animation,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
export { CompositeAnimation, WalkAnimation, Animation } from './animation'
|
||||
export {
|
||||
CompositeAnimation,
|
||||
WalkAnimation,
|
||||
Animation,
|
||||
AnimationFn,
|
||||
IAnimation
|
||||
} from './animation'
|
||||
|
||||
export { SkinViewer, SkinControl } from './viewer'
|
||||
|
||||
export { SkinObject, CapeObject, PlayerObject } from './model'
|
||||
|
|
|
|||
Loading…
Reference in New Issue