mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Format unique symmbol string output with unique symbol and not typeof within checker (#22247)
* Accept baseline update to symbol test * Set default node flag instead of accepting new error
This commit is contained in:
@@ -2756,7 +2756,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function typeToString(type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags, writer: EmitTextWriter = createTextWriter("")): string {
|
||||
function typeToString(type: Type, enclosingDeclaration?: Node, flags: TypeFormatFlags = TypeFormatFlags.AllowUniqueESSymbolType, writer: EmitTextWriter = createTextWriter("")): string {
|
||||
const typeNode = nodeBuilder.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(flags) | NodeBuilderFlags.IgnoreErrors, writer);
|
||||
Debug.assert(typeNode !== undefined, "should always get typenode");
|
||||
const options = { removeComments: true };
|
||||
|
||||
Reference in New Issue
Block a user