I get this type error when I try to use batch with multiple animations
Type error: Expected 1 arguments, but got 2.
In my local, in the AnimationTool.d.ts file that gets created I have changed
export declare const batch: (animations_0: IAnimation) => IAnimation;
to
export declare const batch: ( ...animations: IAnimation[]) => IAnimation;
Testing -
have cloned your code, changed the above line, ran npm run build, took the dist folder, replaced it in the react project.
It is working perfectly.
I get this type error when I try to use batch with multiple animations Type error: Expected 1 arguments, but got 2.
In my local, in the AnimationTool.d.ts file that gets created I have changed export declare const batch: (animations_0: IAnimation) => IAnimation; to export declare const batch: ( ...animations: IAnimation[]) => IAnimation;
Testing - have cloned your code, changed the above line, ran npm run build, took the dist folder, replaced it in the react project. It is working perfectly.