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
I have an issue about the strictNullChecks, indeed I am using it right now and it says "Object is possibly 'undefined'." on an object cannot be undefined.
TypeScript Version: 2.5.3
Code
Failling code
// Retrieve circle with identifierconstcircle: Circle|undefined=awaitthis.circleDao.findById(command.getId());// Check if localAuthority is found in databaseUtils.checkArgument(circle!==undefined,"Circle with id '"+command.getId()+"' cannot be found");// Compiler fail on this line with message "Object is possibly 'undefined'."circle.setDefaultCircle(command.isDefaultCircle());
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have an issue about the
strictNullChecks
, indeed I am using it right now and it says "Object is possibly 'undefined'." on an object cannot be undefined.TypeScript Version: 2.5.3
Code
Failling code
Utils.ts method
Expected behavior:
When I check if an object is undefined in an external method the compiler can see it and don't throw error : "Object is possibly 'undefined'."
Actual behavior:
When I check if an object is undefined in an external method the compiler throw error : "Object is possibly 'undefined'."
The text was updated successfully, but these errors were encountered: