diff options
author | Timothy Gu <timothygu99@gmail.com> | 2016-01-26 10:22:00 -0800 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-03-02 14:01:11 -0800 |
commit | 55cc86bb41abc0381dea7acfe5c717a16a06396f (patch) | |
tree | 3be5f3952ea076bda0da1e4db81c50384d301016 /tools | |
parent | 6062b1c342410dbd96d08e18f3c4a1ee81cceb60 (diff) | |
download | nodejs-55cc86bb41abc0381dea7acfe5c717a16a06396f.tar.gz nodejs-55cc86bb41abc0381dea7acfe5c717a16a06396f.tar.bz2 nodejs-55cc86bb41abc0381dea7acfe5c717a16a06396f.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/json.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js index 4c57aefd7..8772acd1a 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]; |