Remove old cast

Not needed with TS 4.4
This commit is contained in:
Matt Bierner
2021-08-03 22:15:43 -07:00
parent b2142b93e0
commit f944203712
2 changed files with 1 additions and 7 deletions

View File

@@ -10,9 +10,4 @@ declare module 'typescript/lib/protocol' {
interface Response {
readonly _serverType?: ServerType;
}
interface JSDocLinkDisplayPart {
target: Proto.FileSpan;
}
}

View File

@@ -167,8 +167,7 @@ function convertLinkTags(
case 'linkName':
if (currentLink) {
currentLink.name = part.text;
// TODO: remove cast once we pick up TS 4.3
currentLink.target = (part as any as Proto.JSDocLinkDisplayPart).target;
currentLink.target = (part as Proto.JSDocLinkDisplayPart).target;
}
break;