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 <[email protected]>
Reviewed-By: Brian White <[email protected]>
  • Loading branch information
TimothyGu authored and Myles Borins committed Feb 18, 2016
1 parent 96f306f commit bcb327c
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 bcb327c

Please sign in to comment.