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
interfaceA{a: boolean;}interfaceB{b: boolean;}declareconstfooAB: (()=>A)&(()=>B);constab=fooAB();// A
Expected behavior:ab has type A & B
Actual behavior:ab has type A
Perhaps this is being treated as an overloaded call signature, and () => A just happens to be first. If this is by design, it would be great to learn about any known workarounds.