mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
fix(48406): resolve JSDoc host of property signature (#48407)
This commit is contained in:
@@ -2825,7 +2825,11 @@ namespace ts {
|
||||
|
||||
export function getHostSignatureFromJSDoc(node: Node): SignatureDeclaration | undefined {
|
||||
const host = getEffectiveJSDocHost(node);
|
||||
return host && isFunctionLike(host) ? host : undefined;
|
||||
if (host) {
|
||||
return isPropertySignature(host) && host.type && isFunctionLike(host.type) ? host.type :
|
||||
isFunctionLike(host) ? host : undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function getEffectiveJSDocHost(node: Node): Node | undefined {
|
||||
|
||||
Reference in New Issue
Block a user