diff --git a/types/animation.d.ts b/types/animation.d.ts index 5e01acf..6fb372c 100644 --- a/types/animation.d.ts +++ b/types/animation.d.ts @@ -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, diff --git a/types/skinview3d.d.ts b/types/skinview3d.d.ts index 2836014..c6c854b 100644 --- a/types/skinview3d.d.ts +++ b/types/skinview3d.d.ts @@ -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'