type 27null 27 is not assignable to type 27imagesourceproptype 27

Solutions on MaxInterview for type 27null 27 is not assignable to type 27imagesourceproptype 27 by the best coders in the world

showing results for - "type 27null 27 is not assignable to type 27imagesourceproptype 27 "
Emily
20 Nov 2017
1// You can now use the non-null assertion operator that is here exactly 
2// for your use case.
3// It tells TypeScript that even though something looks like it could 
4// be null, it can trust you that it's not:
5let name1:string = person.name!; 
6//                            ^ note the exclamation mark here