Browse Source

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>
v5.x
Timothy Gu 9 years ago
committed by Rod Vagg
parent
commit
5d55f59c85
  1. 2
      tools/doc/json.js

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

Loading…
Cancel
Save