I am trying to add typescript to the react code base that I have developed. Using the type "__esri.MapView" seems to have caused the following error, when trying to do "map.add" when trying to add layers to the view:
"Property 'add' does not exist on type 'MapView | Map'. Property 'add' does not exist on type 'MapView'.
Am I using the wrong type here? Can someone point me to the right direction which type I should be using for MapView?
Thanks!