TypeScript Friendly Vue 3

Lessons

1. Introduction to the Script Setup Syntax

2:34

2. Reactive Variables with Type Inference

5:57

3. Typing Your Callback Functions

4:09

4. Props with Compiler Macros

5:55

5. Type-Safe Emit

4:41

6. (Bonus) Vue vs React: Framework Philosophy

1:35

Type-Safe Emit

Emit

Just like props, emit has a total makeover in the script setup syntax. In this lesson, we’ll pick up another compiler macro for working emit.

To demonstrate the new annotation syntax for emits, let’s first ex