Remove any cast

pull/2748/head
Alex Dima 7 years ago
parent 1e6ff8e032
commit a56039de2d

@ -126,8 +126,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost {
// contains cyclic data structures.
diagnostics.forEach(diag => {
diag.file = undefined;
// FIXME: What is the procedure to upgrade the TypeScript typings?
const related = <ts.Diagnostic[]>(<any>diag).relatedInformation;
const related = <ts.Diagnostic[]>diag.relatedInformation;
if (related) {
related.forEach(diag2 => diag2.file = undefined);
}

Loading…
Cancel
Save