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
Issue: Even if the code is explicitly checking against variable not being undefined the compiler is complaining about Object is possibly 'undefined'. ts(2532) Strict checking is turned on with "strict": true.
The text was updated successfully, but these errors were encountered:
Are you talking about find -> predicate function or the outer function of this code? Can you explain why this code compiles:
if(objectToMoveParentPathComponent!==undefined){constc=objectToMoveParentPathComponent;constobjectToMoveParent=objectToMoveResult.parents.find(p=>p.parentObjectId===c.objectId// No error);// ...}
TypeScript Version: 3.3.1
Issue: Even if the code is explicitly checking against variable not being
undefined
the compiler is complaining aboutObject is possibly 'undefined'. ts(2532)
Strict checking is turned on with"strict": true
.The text was updated successfully, but these errors were encountered: