typescript tell that a type is not nullable code example
Example: how to check is null or empty in typescript
if(typeof propertyValue!='undefined' && propertyValue){
//execute code here
}
if(typeof propertyValue!='undefined' && propertyValue){
//execute code here
}