From bcb327c8dd44469296eaeb5d029816207cf5cade Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Tue, 26 Jan 2016 10:22:00 -0800 Subject: [PATCH] tools: add property types in JSON documentation PR-URL: https://github.com/nodejs/node/pull/4884 Reviewed-By: James M Snell Reviewed-By: Brian White --- tools/doc/json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];