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
TypeScript gives the error TS2532: Object is possibly 'undefined'. in the method fails.
π Expected behavior
The if statement asserts, that this property is set and no modification has been made to the code since the statement. The variable should be set and as the method works it works as expected by setting an extra variable for the accessed property.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
language server undefined
TS2532
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
TypeScript gives the error TS2532:
Object is possibly 'undefined'.
in the methodfails
.π Expected behavior
The if statement asserts, that this property is set and no modification has been made to the code since the statement. The variable should be set and as the method
works
it works as expected by setting an extra variable for the accessed property.The text was updated successfully, but these errors were encountered: