Skip to content

Commit c12fc0d

Browse files
authored
Format unique symmbol string output with unique symbol and not typeof within checker (microsoft#22247)
* Accept baseline update to symbol test * Set default node flag instead of accepting new error
1 parent ec249f7 commit c12fc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,7 @@ namespace ts {
27562756
}
27572757
}
27582758

2759-
function typeToString(type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags, writer: EmitTextWriter = createTextWriter("")): string {
2759+
function typeToString(type: Type, enclosingDeclaration?: Node, flags: TypeFormatFlags = TypeFormatFlags.AllowUniqueESSymbolType, writer: EmitTextWriter = createTextWriter("")): string {
27602760
const typeNode = nodeBuilder.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(flags) | NodeBuilderFlags.IgnoreErrors, writer);
27612761
Debug.assert(typeNode !== undefined, "should always get typenode");
27622762
const options = { removeComments: true };

0 commit comments

Comments
 (0)