Skip to content

vue/require-typed-object-prop

强制将类型声明添加到对象 props

  • 💡 此规则报告的某些问题可由编辑器 suggestions 手动修复。

📖 规则详情

防止 TypeScript 项目中非原始对象属性缺少类型声明。

¥Prevent missing type declarations for non-primitive object props in TypeScript projects.

Now loading...

🔧选项

¥🔧 Options

无。

¥Nothing.

🔇何时不使用

¥🔇 When Not To Use It

当你在项目中未使用 TypeScript 时。

¥When you're not using TypeScript in the project.

🚀版本

¥🚀 Version

此规则在 eslint-plugin-vue v9.16.0 中引入

¥This rule was introduced in eslint-plugin-vue v9.16.0

🔍代码实现

¥🔍 Implementation

eslint-plugin-vue v10.1 中文网 - 粤ICP备13048890号