vue/define-props-declaration
enforce declaration style of
defineProps
📖 Rule Details
This rule enforces defineProps
typing style which you should use type-based
or runtime
declaration.
This rule only works in setup script and lang="ts"
.
🔧 Options
json
"vue/define-props-declaration": ["error", "type-based" | "runtime"]
type-based
(default) enforces type-based declarationruntime
enforces runtime declaration
"runtime"
👫 Related Rules
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v9.5.0