File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -27383,6 +27383,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
27383
27383
}
27384
27384
27385
27385
function isFunctionObjectType(type: ObjectType): boolean {
27386
+ if (getObjectFlags(type) & ObjectFlags.EvolvingArray) {
27387
+ return false;
27388
+ }
27386
27389
// We do a quick check for a "bind" property before performing the more expensive subtype
27387
27390
// check. This gives us a quicker out in the common case where an object type is not a function.
27388
27391
const resolved = resolveStructuredTypeMembers(type);
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ export class TypeWriterWalker {
279
279
}
280
280
else {
281
281
const typeFormatFlags = ts . TypeFormatFlags . NoTruncation | ts . TypeFormatFlags . AllowUniqueESSymbolType | ts . TypeFormatFlags . GenerateNamesForShadowedTypeParams ;
282
- let typeNode = this . checker . typeToTypeNode ( type , node . parent , BigInt ( ( typeFormatFlags & ts . TypeFormatFlags . NodeBuilderFlagsMask ) ) | ts . NodeBuilderFlagsIgnoreErrors ) ! ;
282
+ let typeNode = this . checker . typeToTypeNode ( type , node . parent , BigInt ( typeFormatFlags & ts . TypeFormatFlags . NodeBuilderFlagsMask ) | ts . NodeBuilderFlagsIgnoreErrors ) ! ;
283
283
if ( ts . isIdentifier ( node ) && ts . isTypeAliasDeclaration ( node . parent ) && node . parent . name === node && ts . isIdentifier ( typeNode ) && ts . idText ( typeNode ) === ts . idText ( node ) ) {
284
284
// for a complex type alias `type T = ...`, showing "T : T" isn't very helpful for type tests. When the type produced is the same as
285
285
// the name of the type alias, recreate the type string without reusing the alias name
You can’t perform that action at this time.
0 commit comments