Remove unnecessary get type from JSDoc comment

This commit is contained in:
Kanchalai Tanglertsampan 2017-06-13 14:09:16 -07:00
parent 7dae8f73dd
commit d392f1edab

View File

@ -12748,12 +12748,6 @@ namespace ts {
if (typeNode) {
return getTypeFromTypeNode(typeNode);
}
if (isInJavaScriptFile(declaration)) {
const jsDocType = getTypeForDeclarationFromJSDocComment(declaration);
if (jsDocType) {
return jsDocType;
}
}
if (declaration.kind === SyntaxKind.Parameter) {
const type = getContextuallyTypedParameterType(<ParameterDeclaration>declaration);
if (type) {