Vue Nuxt
Tips & Tricks

A collection of Vue, Nuxt and Vite tips, tricks and good practices.

In Vue, you can type your component emits to have better error handling and editor support.

const emit = defineEmits<{
  change: [id: number]
  update: [value: string]
}>()