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:
Wesley Wigham
2018-02-28 17:55:56 -08:00
committed by GitHub
parent ec249f7f67
commit c12fc0d6c3

View File

@@ -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 };