Produces the return type for a function after a prefix of arguments has already been bound.
This implementation is a TypeScript 3.4+ compatible middle ground between:
(...args: any[]) => ReturnType<TFn>
It preserves remaining argument inference for up to 5 pre-bound arguments and then falls back to a generic callable return type.
The function being bound.
The tuple of arguments that will be pre-bound.
0.15.0
Produces the return type for a function after a prefix of arguments has already been bound.
This implementation is a TypeScript 3.4+ compatible middle ground between:
(...args: any[]) => ReturnType<TFn>)It preserves remaining argument inference for up to 5 pre-bound arguments and then falls back to a generic callable return type.