Newly arrived production release improves build speeds and startup times and brings editing and coding enhancements
TypeScript 4.0 boosts speed in the
build mode, with the caching of semantic diagnostics in the builder written to the disk with
.tsbuildinfo, to benefit the next incremental build. This is intended to fix a situation in which compiling a program after a previous compile with errors under
--incremental would be very slow when using the
dependencies field. Information from these packages is used to improve auto-imports while not changing anything like type-checking.
Other capabilities in TypeScript 4.0 include:
??=, is supported as a coding enhancement.
catchclause variables can be specified as
unknownbeing safer than
anybecause it reminds developers that they must perform type-checking before operating on their values.
jsxFragmentFactoryoption. A fragment is a type of JSX element for returning multiple child elements.
deletemust be optional. Also, the usage of TypeScript’s node factory has been deprecated.
Learn TypeScript | TypeScript Crash Course | TypeScript Tutorial for Beginners: My goal with this courses is just give your the fundamentals of the language, show you what TypeScript is and how to use it. We as developers don't have time neither can we afford to spend too much time on any tehcnology.
TypeScript — Compilation & the TypeScript Compiler. In this lesson, we are going to learn about the settings of the TypeScript compiler and the usage of the tsconfig.json file.