I have a .d.ts definition file for multiple types that can also be extended. In my experience it seems that it is possible to define a return type for a function, but only one a