Skip to content

Commit

Permalink
Merge pull request #42 from kentcdodds/patch-1
Browse files Browse the repository at this point in the history
Adding ArrayType to @param format types
  • Loading branch information
dtao committed Jan 5, 2014
2 parents 7777a65 + 2c0ee5c commit d7db634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autodoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,9 @@
case 'FunctionType':
return 'function(' + Lazy(type.params).map(Autodoc.formatType).join(', ') + '):' + Autodoc.formatType(type.result);

case 'ArrayType':
return type.elements;

default:
throw 'Unable to format type ' + type.type + '!\n\n' + JSON.stringify(type, null, 2);
}
Expand Down

0 comments on commit d7db634

Please sign in to comment.