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 rvagg committed Feb 8, 2016
1 parent 396e4b9 commit 5d55f59
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 5d55f59

Please sign in to comment.