senchalabs/jsduck — Issue #113: Support for documenting Model fields
Author: nene
Created: 2011-12-22 13:35:23+00:00
State: open

Would be nice if one would only need to write this:

```javascript
fields: [
/**
* Long description.
*/
{ name: 'description', type: 'string' },
/**
* Value of the item.
*/
{ name: 'value', type: 'string' },
/**
* True if active.
*/
{ name: 'isActive', type: 'bool' }
]
```

...and all the fields would get documented as config options.

The data types should be mapped as follows:

- auto - Mixed
- string - String
- int, integer, float, number - Number
- bool, boolean - Boolean
- date - Date