What is TypeScript?
Compilation of TypeScript Code:
The TypeScript Community:
Since the inception of TypeScript, it has grown as a language as well as a community. Apart from millions of downloads, there is the great adoption of the TypeScript nightly builds with a couple of thousand users participating in GitHub discussions. Microsoft has accepted many PRs from many users related to defects, prototypes and new features. The community interest is there because the community is learning new things, getting the advantage of the static type system, as well as the developers, can improve their productivity. Developers working on freelance jobs have advantages due to open source and community networks.
Type Declaration in TypeScript:
Evolution of TypeScript Language:
After the release of TypeScript, the next version was release 1.1, where the compiler was re-written to improve the performance drastically. A new baseline of performance and speed is available now with this compiler. They also decided to migrate the code repository to GitHub and got community engagement in this Project,
TypeScript 2.0 Specifications:
TypeScript 2.0 is a major release with many new and enhanced features over 1.8. We will see some key features Microsoft added, which directly impact the developers.
Easy Declaration File: The acquisition of .d.ts files officially is going to simplify the way of using these files with the help of Typings and tsd tools. This feature is helpful for new users to quickly get acquainted with this software and manage declaration file dependencies.
Control Flow Analyzed Types: The control flow analysis was there in earlier version also, but now you have more control over it. You can produce specific type at any given time. You can combine this functionality with non-nullable types and can write complex conditions.
As soon as there is a better language available in the market, the enthusiastic development community will try to find out whether it is making more sense to migrate their current (old) projects to the new language. In this case, compatibility or crashing of old code is not an issue, but you can see some advantages of this migration (or at least writing new modules using TypeScript)
- As discussed earlier, the static type checking is main advantage
- As the language is ES6 compatible, you get support of those features
The ‘type’ system is what is great about TypeScript. Microsoft will continue to work on this to evolve it more along with partners, freelance web developers, and the TypeScript community. The language services will also be enhanced, and the language will be made more feature-rich.