@@ -4617,7 +4617,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
46174617 }
46184618 if (moduleResolutionKind === ModuleResolutionKind.Node16 || moduleResolutionKind === ModuleResolutionKind.NodeNext) {
46194619 const isSyncImport = (currentSourceFile.impliedNodeFormat === ModuleKind.CommonJS && !findAncestor(location, isImportCall)) || !!findAncestor(location, isImportEqualsDeclaration);
4620- const overrideHost = findAncestor(location, l => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l)) as ImportTypeNode | ImportDeclaration | ExportDeclaration | undefined ;
4620+ const overrideHost = findAncestor(location, l => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
46214621 // An override clause will take effect for type-only imports and import types, and allows importing the types across formats, regardless of
46224622 // normal mode restrictions
46234623 if (isSyncImport && sourceFile.impliedNodeFormat === ModuleKind.ESNext && !hasResolutionModeOverride(overrideHost)) {
@@ -13412,7 +13412,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1341213412 links[resolutionKind] = resolved || emptySymbols;
1341313413 }
1341413414
13415- return links[resolutionKind]! ;
13415+ return links[resolutionKind];
1341613416 }
1341713417
1341813418 /**
@@ -18827,7 +18827,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1882718827 function getSimplifiedIndexedAccessType(type: IndexedAccessType, writing: boolean): Type {
1882818828 const cache = writing ? "simplifiedForWriting" : "simplifiedForReading";
1882918829 if (type[cache]) {
18830- return type[cache] === circularConstraintType ? type : type[cache]! ;
18830+ return type[cache] === circularConstraintType ? type : type[cache];
1883118831 }
1883218832 type[cache] = circularConstraintType;
1883318833 // We recursively simplify the object type as it may in turn be an indexed access type. For example, with
0 commit comments