Is it possible to define all the overloads of a function in an interface or type, ideally with some type parameters?
I have a collection of functions that all have roughly the same set of overloaded signatures, and it feels bad to have basically the same 50 lines or so in every file. Can this be abstracted out to a type somehow?
See playground link for simplified example of what I'm talking about.