tools: add property types in JSON documentation

PR-URL: https://github.com/nodejs/node/pull/4884
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
This commit is contained in:
Timothy Gu 2016-01-26 10:22:00 -08:00 committed by Rich Trott
parent 8ff9b56c92
commit ab45390e01

View File

@ -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];