return {
...animationController,
start: () => {
this.animateNode(div, props, settings);
return animationController.start();
},
};
Spreading the animationController doesn't work - its missing all the functions from EventEmitter base class. I think you need to do another defineProperty wrap around the controller for start method.