Remove any cast for completion items now that we've picked up TS 2.7

This commit is contained in:
Matt Bierner
2018-01-17 17:10:46 -08:00
parent eacad2d56f
commit a00d9092bc

View File

@@ -53,7 +53,7 @@ class MyCompletionItem extends CompletionItem {
this.range = tsTextSpanToVsRange(tsEntry.replacementSpan);
}
if (typeof (tsEntry as any).insertText === 'string') {
if (typeof tsEntry.insertText === 'string') {
this.insertText = (tsEntry as any).insertText as string;
if (tsEntry.replacementSpan) {