What is TypeScript?
Types provide a way to describe the shape of an object, providing better documentation, and allowing TypeScript to validate that your code is working correctly.
Writing types can be optional in TypeScript, because type inference allows you to get a lot of power without writing additional code.
A Result You Can Trust
TypeScript’s type inference means that you don’t have to annotate your code until you want more safety.