You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReturnType (and conditional types on signatures in general) only operate on single overload. For intersection, union or overloads, the first is always picked.
Activity
mhegazy commentedon Jul 5, 2018
ReturnType(and conditional types on signatures in general) only operate on single overload. For intersection, union or overloads, the first is always picked.#6606 tracks adding call types.
christianalfoni commentedon Jul 5, 2018
Mohamed Hegazy (@mhegazy) Aha, I see... thanks for the quick response!
christianalfoni commentedon Jul 6, 2018
Okay, so this black magic TypeScript code actually solves it: