diff --git a/tools/doc/json.js b/tools/doc/json.js index 07aef469f3..9f256e41e5 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];