TypeScript
JavaScript with extra rules that catch mistakes before they happen.
What is TypeScript?
TypeScript adds type checking to JavaScript. It means your code editor can warn you about mistakes before you run the code. Most vibe coding tools generate TypeScript by default. You'll see .ts and .tsx file extensions.
Think of TypeScript as a spell checker for code. It won't stop you from writing bad logic, but it will catch typos, missing variables, and wrong data types before they cause problems.
In Vibe Coding
Cursor, Lovable, and Bolt all generate TypeScript by default. It catches errors before you run the code — like a spell checker for programming. You'll see .ts and .tsx files instead of .js.
Example
For example: You define that a user must have an email (text) and age (number). If your code tries to set age to "twenty" instead of 20, TypeScript highlights the mistake before the app even runs.