mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Remove any cast
This commit is contained in:
parent
1e6ff8e032
commit
a56039de2d
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue