Skip to content

Commit f81bf97

Browse files
committed
JSDoc @type tag optional parameters
1 parent 5f017df commit f81bf97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12762,6 +12762,10 @@ namespace ts {
1276212762
}
1276312763

1276412764
function getSignatureFromDeclaration(declaration: SignatureDeclaration | JSDocSignature): Signature {
12765+
if (isInJSFile(declaration)) {
12766+
const signature = getSignatureOfTypeTag(declaration);
12767+
if (signature) return signature;
12768+
}
1276512769
const links = getNodeLinks(declaration);
1276612770
if (!links.resolvedSignature) {
1276712771
const parameters: Symbol[] = [];

0 commit comments

Comments
 (0)