I am using d3 Version 3 and I am trying to use d3's ease function for animation. According to the function's definition it has a return value
function ease(type: 'cubic-in'): (t: number) => number;
I am expecting a number as the return value to use it in my computation. But, now how can I cast the return value of the ease function to a number. Is there any other way to achieve this?
Thank you.