Is it feasible to define a function in TypeScript 2.7.2 and above with variable parameters, but ensuring that the final parameter has a specific type?
I am attempting to craft an ambient TypeScript declaration for a JavaScript library that utilizes functions with changing parameters, yet requires the last parameter to consistently be a predetermined callback function.