Is it possible in typescript to define a function type and extend its argument list in another type (overloading function type?)?
Let's say I have this type:
type BaseFunc = (a: string) => Promise<string>
I want to define another type with one additional argument (b: number) and the same return value.
If at some point in the future BaseType adds or changes arguments this should also be reflected in my overloaded function type.