๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—ง๐˜†๐—ฝ๐—ฒ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ง๐˜†๐—ฝ๐—ฒ๐˜€

JavaScript is dynamic. You put a number in a variable. Then you put a string in it. This causes bugs.

TypeScript fixes this. It defines the shape of your data. It finds errors before you run the code.

Use these types to write better code:

Primitives

Structures

Collections

Safety Types

Pick the right type. Stop bugs early.

Source: https://dev.to/yuripeixinho/tipos-em-tyopescript-j9h