# require-typed-object-prop

Rule `vue/require-typed-object-prop`. Enforce adding type declarations to object props

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1851 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/require-typed-object-prop` | no | suggestion | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/require-typed-object-prop.html) |
| Biome | `nursery/useVueTypedObjectProps` | no | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/use-vue-typed-object-props/) |

## Code examples

### Incorrect: the rule reports this

```vue
bad1: Object,
bad2: { type: Array },
```

### Correct: the rule accepts this

```vue
    good1: Object as PropType<Anything>,
    good2: { type: Array as PropType<Anything[]> },
    good3: [String, Boolean], // or any other primitive type
  }
}
</script>
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/require-typed-object-prop": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useVueTypedObjectProps": "error"
      }
    }
  }
}
```

## Related rules

- [vue/require-macro-variable-name](https://lintradar.dev/rules/vue/require-macro-variable-name.md): Require a certain macro variable name
- [vue/slot-name-casing](https://lintradar.dev/rules/vue/slot-name-casing.md): Enforce specific casing for slot names
- [vue/require-explicit-slots](https://lintradar.dev/rules/vue/require-explicit-slots.md): Require slots to be explicitly defined
- [vue/v-for-delimiter-style](https://lintradar.dev/rules/vue/v-for-delimiter-style.md): Enforce `v-for` directive's delimiter style
- [vue/require-emit-validator](https://lintradar.dev/rules/vue/require-emit-validator.md): Require type definitions in emits
- [vue/v-on-handler-style](https://lintradar.dev/rules/vue/v-on-handler-style.md): Enforce writing style for handlers in `v-on` directives

---

Web page: https://lintradar.dev/rules/vue/require-typed-object-prop. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
