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
TS2349: Cannot invoke an expression whose type lacks a call signature.
Notes
It comes from the | operator in the loginUser function. If I switch to a "determinist" type by putting Observable<any>, typescript is some way "sure" (sorry for the term) of having an observable and it accepts the subscribe call.
The text was updated successfully, but these errors were encountered:
gjuchault
changed the title
Chaining results in TS2349
Non-determinist signature results in TS2349
Jun 27, 2016
TypeScript Version:
1.8.10
Code
Failure:
Working:
Definition for
loginUser
:Expected behavior:
No errors
Actual behavior:
TS2349:
Cannot invoke an expression whose type lacks a call signature
.Notes
It comes from the
|
operator in theloginUser
function. If I switch to a "determinist" type by puttingObservable<any>
, typescript is some way "sure" (sorry for the term) of having an observable and it accepts thesubscribe
call.The text was updated successfully, but these errors were encountered: