Skip to content

Commit d392f1e

Browse files
author
Kanchalai Tanglertsampan
committed
Remove unnecessary get type from JSDoc comment
1 parent 7dae8f7 commit d392f1e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12748,12 +12748,6 @@ namespace ts {
1274812748
if (typeNode) {
1274912749
return getTypeFromTypeNode(typeNode);
1275012750
}
12751-
if (isInJavaScriptFile(declaration)) {
12752-
const jsDocType = getTypeForDeclarationFromJSDocComment(declaration);
12753-
if (jsDocType) {
12754-
return jsDocType;
12755-
}
12756-
}
1275712751
if (declaration.kind === SyntaxKind.Parameter) {
1275812752
const type = getContextuallyTypedParameterType(<ParameterDeclaration>declaration);
1275912753
if (type) {

0 commit comments

Comments
 (0)