Among the novelties in Type Script 2.0 is that null and undefined are now actual types, and it makes it easier to take into account that you sometimes risk getting either one or the other return.
To utilize this feature in Type Script 2.0 must, however, beat the strict null checks to. The Microsoft recommends that you do, but it may cause problems with existing code, and therefore it is so far optional.
New syntax and object-oriented programming
Type Script defines example return types of methods such as the syntax of Swift, but a little different than languages like C # and Java, but like the two languages, then type Script also thought to support object-oriented programming.
“It is often used as an argument against Type Script that they have taken an overall architectural choices. But we’re still object-oriented in this house, “says Dennis Haulund Nielsen.
Compatible with all browsers
Help for major projects
“With a good IDE you get autocomplete and Intellisense. It’s easier to work on a team when colleagues can quickly see such arguments to a library. It flies more along, when codes, “explains Dennis Haulund Nielsen.
At Nodes developers are in the process of transferring the core components that are being used in several projects to Type Script inter alia, increasing the quality assurance of the code.
“We recycle the modules in many projects, so it makes sense that they will be as flawless as possible.Therefore it makes sense to put the time in to port them, “says Dennis Haulund Nielsen.
Another new feature of Type Script 2.0 is also helpful to the larger projects, namely the ability to make properties read-only. It can help to prevent that two developers working in their own part of the code gets introduced code that will overwrite each other’s objects.