Skip to content

Commit

Permalink
Fix codegen if type name starts with "Object"
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDog committed Sep 17, 2017
1 parent 952c7d1 commit 1724581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lib/tsd-jsdoc/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 1724581

Please sign in to comment.