Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion internal/checker/nodebuilderimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,13 @@ func (b *nodeBuilderImpl) addPropertyToElementList(propertySymbol *ast.Symbol, t
name: propertyName,
questionToken: optionalToken,
})
b.setCommentRange(methodDeclaration, propertySymbol.ValueDeclaration) // !!! missing JSDoc support formerly provided by preserveCommentsOn
var commentRange *ast.Node
if signature.Declaration() != nil {
commentRange = signature.Declaration()
} else {
commentRange = propertySymbol.ValueDeclaration
}
b.setCommentRange(methodDeclaration, commentRange) // !!! missing JSDoc support formerly provided by preserveCommentsOn
typeElements = append(typeElements, methodDeclaration)
}
if len(signatures) != 0 || optionalToken == nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ declare function Foo(): {
*/
foo(bar: string): void;
/**
* comment 1
* @deprecated This signature is deprecated
*
* comment 2
*/
foo(): string;
};
Expand Down

This file was deleted.