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
This is by design, apparently. We have this comment in the related code:
// The signatures of a union type are those signatures that are present in each of the constituent types.// Generic signatures must match exactly, but non-generic signatures are allowed to have extra optional// parameters and may differ in return types. When signatures differ in return types, the resulting return// type is the union of the constituent return types.functiongetUnionSignatures(types: Type[],kind: SignatureKind): Signature[]{
However, I'm not sure if we have good spec/test coverage for this, and I think attempting quick info on the function call in this example seems to freeze the language service.
Though this behavior is currently by design, we could possibly? do better here.
The text was updated successfully, but these errors were encountered: