We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ead2d42 commit 0ca3a1fCopy full SHA for 0ca3a1f
1 file changed
src/compiler/checker.ts
@@ -42013,6 +42013,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
42013
if (
42014
!(symbol.flags & (SymbolFlags.TypeLiteral | SymbolFlags.Signature))
42015
&& !shouldPrintWithInitializer(node)
42016
+ && !(hasEffectiveModifier(node, ModifierFlags.Private) || isPrivateIdentifierClassElementDeclaration(node))
42017
&& !isDeclarationAndNotVisible(node)
42018
) {
42019
const widenedLiteralType = getWidenedLiteralType(type);
0 commit comments