Skip to content

Commit

Permalink
tools: add property types in JSON documentation
Browse files Browse the repository at this point in the history
PR-URL: #4884
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
  • Loading branch information
TimothyGu authored and Trott committed Jan 30, 2016
1 parent 8ff9b56 commit ab45390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function processList(section) {
// copy the data up to the section.
var value = values[0] || {};
delete value.name;
section.typeof = value.type;
section.typeof = value.type || section.typeof;
delete value.type;
Object.keys(value).forEach(function(k) {
section[k] = value[k];
Expand Down

0 comments on commit ab45390

Please sign in to comment.