Skip to content

Commit c5ffae5

Browse files
author
Armando Aguirre Sepulveda
committed
Fixed typos
1 parent 7d434b7 commit c5ffae5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27383,6 +27383,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2738327383
}
2738427384

2738527385
function isFunctionObjectType(type: ObjectType): boolean {
27386+
if (getObjectFlags(type) & ObjectFlags.EvolvingArray) {
27387+
return false;
27388+
}
2738627389
// We do a quick check for a "bind" property before performing the more expensive subtype
2738727390
// check. This gives us a quicker out in the common case where an object type is not a function.
2738827391
const resolved = resolveStructuredTypeMembers(type);

src/harness/typeWriter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class TypeWriterWalker {
279279
}
280280
else {
281281
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)!;
283283
if (ts.isIdentifier(node) && ts.isTypeAliasDeclaration(node.parent) && node.parent.name === node && ts.isIdentifier(typeNode) && ts.idText(typeNode) === ts.idText(node)) {
284284
// 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
285285
// the name of the type alias, recreate the type string without reusing the alias name

0 commit comments

Comments
 (0)