Question · Vue.js course · Module 15: TypeScript & Nuxt

Legacy Emits Syntax

How does the legacy defineEmits syntax (before 3.3) differ from the new one?

Answer options

  • The legacy one uses (e: 'name', ...args): void syntax instead of tuples
  • The legacy one does not support TypeScript at all
  • The legacy one requires the @Emit decorator
  • There is no difference - the syntaxes are identical

You can check the correct answer by solving this task in the CodeWorlds game.