Skip to content

Commit

Permalink
fix missing js doc metadata for overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
souporserious committed Jan 26, 2025
1 parent ebdb9c8 commit ee39f4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-students-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'renoun': patch
---

Fixes missing JS Doc metadata for overloads in `JavaScriptFileExport#getType`.
2 changes: 2 additions & 0 deletions packages/renoun/src/utils/resolve-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,8 @@ function resolveSignature(
parameters: resolvedParameters,
modifier,
returnType,
...getJsDocMetadata(signatureDeclaration),
...getDeclarationLocation(signatureDeclaration),
}
}

Expand Down

0 comments on commit ee39f4d

Please sign in to comment.