Skip to content

Commit

Permalink
Fix crash when converting globalThis namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Oct 2, 2021
1 parent 2a2f504 commit ea0b3d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- TypeDoc will now only create one highlighter for rendering code, saving ~200-500ms for rendering time.
- For compatibility with JSDoc, TypeDoc will now strip `<caption>` elements from `@example` tags, resolves #1679.
- Fixed a crash when converting the `globalThis` namespace, could only be caused by a plugin.

### Thanks!

Expand Down
1 change: 1 addition & 0 deletions src/lib/converter/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ function convertProperty(
// Special case: We pretend properties are methods if they look like methods.
// This happens with mixins / weird inheritance.
if (
declarations.length &&
declarations.every(
(decl) => ts.isMethodSignature(decl) || ts.isMethodDeclaration(decl)
)
Expand Down

0 comments on commit ea0b3d7

Please sign in to comment.