
TypeScript Friendly Vue 3
Lessons
1. Introduction to the Script Setup Syntax
2. Reactive Variables with Type Inference
3. Typing Your Callback Functions
4. Props with Compiler Macros
5. Type-Safe Emit
6. (Bonus) Vue vs React: Framework Philosophy
Reactive Variables with Type Inference
In this lesson, we’ll start using TypeScript with ref() and reactive(). Type inference is a main theme when working with reactive variables. We’ll go through some general patterns and caveats on creating reactive variables with/without type inference.