Skip to content

Commit

Permalink
Fix object types with methods
Browse files Browse the repository at this point in the history
Closes #1788
  • Loading branch information
Gerrit0 committed Oct 23, 2022
1 parent 7072f73 commit 1ebddd6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Bug Fixes

- Fixed display of object types containing methods, #1788.
- Fixed conversion of intrinsic string mapping types when converting without a type node, #2079.

## v0.23.17 (2022-10-18)
Expand Down
16 changes: 16 additions & 0 deletions src/lib/output/themes/default/partials/type.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,22 @@ const typeRenderers: {
continue;
}

if (item.signatures) {
for (const sig of item.signatures) {
members.push(
<>
{item.name}
{item.flags.isOptional && <span class="tsd-signature-symbol">?</span>}
{context.memberSignatureTitle(sig, {
hideName: true,
arrowStyle: false,
})}
</>
);
}
continue;
}

members.push(
<>
{item.name}
Expand Down

0 comments on commit 1ebddd6

Please sign in to comment.