Answers for "Type 'null' is not assignable to type 'ImageSourcePropType'."

1

Type 'null' is not assignable to type 'ImageSourcePropType'.

// You can now use the non-null assertion operator that is here exactly 
// for your use case.
// It tells TypeScript that even though something looks like it could 
// be null, it can trust you that it's not:
let name1:string = person.name!; 
//                            ^ note the exclamation mark here
Posted by: Guest on August-05-2021

Code answers related to "Type 'null' is not assignable to type 'ImageSourcePropType'."

Code answers related to "TypeScript"

Browse Popular Code Answers by Language