How to type view 1