You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (isStaticMethodSymbol || isNonLocalFunctionSymbol) {
3713
3709
// typeof is allowed only for static/non local functions
3714
3710
return (!!(context.flags & NodeBuilderFlags.UseTypeOfFunction) || (context.visitedTypes && context.visitedTypes.has(typeId))) && // it is type of the symbol uses itself recursively
3715
-
(!(context.flags & NodeBuilderFlags.UseStructuralFallback) || isValueSymbolAccessible(symbol, context.enclosingDeclaration!)); // TODO: GH#18217 // And the build is going to succeed without visibility error or there is no structural fallback allowed
3711
+
(!(context.flags & NodeBuilderFlags.UseStructuralFallback) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); // And the build is going to succeed without visibility error or there is no structural fallback allowed
3716
3712
}
3717
3713
}
3718
3714
}
@@ -3789,7 +3785,7 @@ namespace ts {
3789
3785
else if (context.flags & NodeBuilderFlags.WriteClassExpressionAsTypeLiteral &&
function resolveImportSymbolType(node: ImportTypeNode, links: NodeLinks, symbol: Symbol, meaning: SymbolFlags) {
10563
10561
const resolvedSymbol = resolveSymbol(symbol);
10564
10562
links.resolvedSymbol = resolvedSymbol;
10565
10563
if (meaning === SymbolFlags.Value) {
10566
-
return links.resolvedType = getTypeOfSymbol(symbol); // intentionally doesn't use resolved symbol so type is cached as expected on the alias
10564
+
return getTypeOfSymbol(symbol); // intentionally doesn't use resolved symbol so type is cached as expected on the alias
10567
10565
}
10568
10566
else {
10569
-
return links.resolvedType = getTypeReferenceType(node, resolvedSymbol); // getTypeReferenceType doesn't handle aliases - it must get the resolved symbol
10567
+
return getTypeReferenceType(node, resolvedSymbol); // getTypeReferenceType doesn't handle aliases - it must get the resolved symbol
10570
10568
}
10571
10569
}
10572
10570
@@ -12297,7 +12295,7 @@ namespace ts {
12297
12295
if (errorOutputContainer) {
12298
12296
errorOutputContainer.error = diag;
12299
12297
}
12300
-
diagnostics.add(diag); // TODO: GH#18217
12298
+
diagnostics.add(diag);
12301
12299
}
12302
12300
return result !== Ternary.False;
12303
12301
@@ -13585,7 +13583,7 @@ namespace ts {
13585
13583
if (isGenericMappedType(source)) {
13586
13584
// A generic mapped type { [P in K]: T } is related to an index signature { [x: string]: U }
13587
13585
// if T is related to U.
13588
-
return (kind === IndexKind.String && isRelatedTo(getTemplateTypeFromMappedType(source), targetInfo.type, reportErrors)) as any as Ternary; // TODO: GH#18217
0 commit comments