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:
parent
8ff9b56c92
commit
ab45390e01
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user