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

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