mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Allow local class declarations to be returned as mixins (#22807)
This commit is contained in:
@@ -3185,7 +3185,9 @@ namespace ts {
|
||||
}
|
||||
else if (context.flags & NodeBuilderFlags.WriteClassExpressionAsTypeLiteral &&
|
||||
type.symbol.valueDeclaration &&
|
||||
type.symbol.valueDeclaration.kind === SyntaxKind.ClassExpression) {
|
||||
isClassLike(type.symbol.valueDeclaration) &&
|
||||
!isValueSymbolAccessible(type.symbol, context.enclosingDeclaration)
|
||||
) {
|
||||
return createAnonymousTypeNode(type);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user