diff --git a/src/skinview3d.js b/src/skinview3d.js index cffcaab..b6d47d2 100644 --- a/src/skinview3d.js +++ b/src/skinview3d.js @@ -25,4 +25,4 @@ export { SkinObject, CapeObject, PlayerObject } from "./model"; export { SkinViewer, SkinControl } from "./viewer"; -export { CompositeAnimation, WalkAnimation } from "./animation"; +export { invokeAnimation, CompositeAnimation, WalkAnimation } from "./animation"; diff --git a/types/animation.d.ts b/types/animation.d.ts index 8308807..20e8620 100644 --- a/types/animation.d.ts +++ b/types/animation.d.ts @@ -6,7 +6,7 @@ interface IAnimation { } export type Animation = AnimationFn | IAnimation; -declare function invokeAnimation( +export function invokeAnimation( animation: Animation, player: PlayerObject, time: number,