<a name="user-content-require-property-type"></a>
<a name="require-property-type"></a>
# <code>require-property-type</code>

* [Context and settings](#user-content-require-property-type-context-and-settings)
* [Failing examples](#user-content-require-property-type-failing-examples)
* [Passing examples](#user-content-require-property-type-passing-examples)


Requires that each `@property` tag has a type value (within curly brackets).

<a name="user-content-require-property-type-context-and-settings"></a>
<a name="require-property-type-context-and-settings"></a>
## Context and settings

|||
|---|---|
|Context|everywhere|
|Tags|`property`|
|Aliases|`prop`|
|Recommended|true|

<a name="user-content-require-property-type-failing-examples"></a>
<a name="require-property-type-failing-examples"></a>
## Failing examples

The following patterns are considered problems:

````ts
/**
 * @typedef {SomeType} SomeTypedef
 * @property foo
 */
// Message: Missing JSDoc @property "foo" type.

/**
 * @typedef {SomeType} SomeTypedef
 * @prop foo
 */
// Settings: {"jsdoc":{"tagNamePreference":{"property":"prop"}}}
// Message: Missing JSDoc @prop "foo" type.

/**
 * @typedef {SomeType} SomeTypedef
 * @property foo
 */
// Settings: {"jsdoc":{"tagNamePreference":{"property":false}}}
// Message: Unexpected tag `@property`
````



<a name="user-content-require-property-type-passing-examples"></a>
<a name="require-property-type-passing-examples"></a>
## Passing examples

The following patterns are not considered problems:

````ts
/**
 * @typedef {SomeType} SomeTypedef
 */

/**
 * @typedef {SomeType} SomeTypedef
 * @property {number} foo
 */

/**
 * @namespace {SomeType} SomeName
 * @property {number} foo
 */

/**
 * @class
 * @property {number} foo
 */
````