Recently, I delved into the world of Angular 4 and Typescript by following the step-by-step "Angular-tour-of-heroes" tutorial on the Angular.io website. Since Angular 4 relies on typescript for defining components and more, I wanted to deepen my understanding of Typescript itself. So, I began searching the internet for documentation on Typescript and stumbled upon ''. However, as I compared the syntax provided in the documentation with actual Angular code, I noticed significant differences.
1) In the documentation, functions are declared using the 'function' keyword, whereas in Angular, functions do not require the 'function' keyword.
2) The document suggests declaring types using the 'let' keyword, but in Angular, no such requirement is present.
These disparities have left me feeling perplexed about where to find reliable TypeScript documentation and why Angular employs a distinct syntax altogether.