소스 검색

Remove any cast

Alex Dima 7 년 전
부모
커밋
a56039de2d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/tsWorker.ts

+ 1 - 2
src/tsWorker.ts

@@ -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);
 			}