From 1724581c36ecc4fc166ea14a9dd57af5e093a467 Mon Sep 17 00:00:00 2001 From: Andreas Sommer Date: Sun, 17 Sep 2017 18:58:46 +0200 Subject: [PATCH] Fix codegen if type name starts with "Object" --- cli/lib/tsd-jsdoc/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/lib/tsd-jsdoc/publish.js b/cli/lib/tsd-jsdoc/publish.js index 4c0b225ee..fb9374667 100644 --- a/cli/lib/tsd-jsdoc/publish.js +++ b/cli/lib/tsd-jsdoc/publish.js @@ -295,7 +295,7 @@ function getTypeOf(element) { name = name.replace(/\bfunction(?:\(\))?\b/g, "Function"); // Convert plain Object back to just object - name = name.replace(/\b(Object(?!\.))/g, function($0, $1) { + name = name.replace(/\b(Object\b(?!\.))/g, function($0, $1) { return $1.toLowerCase(); });