diff --git a/tools/doc/json.js b/tools/doc/json.js index 4c57aefd797eba..8772acd1ab09b6 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -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];