Skip to content

Commit 1724581

Browse files
committed
Fix codegen if type name starts with "Object"
1 parent 952c7d1 commit 1724581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/lib/tsd-jsdoc/publish.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function getTypeOf(element) {
295295
name = name.replace(/\bfunction(?:\(\))?\b/g, "Function");
296296

297297
// Convert plain Object back to just object
298-
name = name.replace(/\b(Object(?!\.))/g, function($0, $1) {
298+
name = name.replace(/\b(Object\b(?!\.))/g, function($0, $1) {
299299
return $1.toLowerCase();
300300
});
301301

0 commit comments

Comments
 (0)