When going over angular 2 tutorials, I can see that in certain places the type of class properties is specified, for example name: string;, and in some places it is omitted. Same goes for function return types. This makes it unclear to me what is the best practice in this regard. If you choose to omit the type, don't you lose one of the biggest benefits of typescript?