Extra information about values
A team can use TypeScript to say that an order total should be a number. If code later tries to use text where that number is expected, a check can flag it during development. This helps on larger projects where many people work on the same code.
TypeScript is turned into JavaScript for the browser or another JavaScript runtime. Its checks catch some mismatches, but they cannot prove that every value received from a user or outside service is valid.