Skip to content
On this page

vue/define-emits-declaration

enforce declaration style of defineEmits

📖 Rule Details

This rule enforces defineEmits typing style which you should use type-based or runtime declaration.

This rule only works in setup script and lang="ts".

Now loading...

🔧 Options

json
  "vue/define-emits-declaration": ["error", "type-based" | "runtime"]
  • type-based (default) enforces type-based declaration
  • runtime enforces runtime declaration

runtime

Now loading...

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-vue v9.5.0

🔍 Implementation