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 Myles Borins committed Mar 2, 2016
1 parent 6062b1c commit 55cc86b
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 55cc86b

Please sign in to comment.