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
No known key found for this signature in database
GPG key ID: 099C331567E11888
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;