Don't mix NodeBuilder and TypeFormat flags (#55310)

This commit is contained in:
Maria José Solano 2023-08-08 13:33:29 -07:00 committed by GitHub
parent c2cae08802
commit e50b075b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,6 @@ import {
textSpanIntersectsWith,
TupleTypeReference,
Type,
TypeFormatFlags,
unescapeLeadingUnderscores,
UserPreferences,
usingSingleLineStringWriter,
@ -414,7 +413,7 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
}
function printTypeInSingleLine(type: Type) {
const flags = NodeBuilderFlags.IgnoreErrors | TypeFormatFlags.AllowUniqueESSymbolType | TypeFormatFlags.UseAliasDefinedOutsideCurrentScope;
const flags = NodeBuilderFlags.IgnoreErrors | NodeBuilderFlags.AllowUniqueESSymbolType | NodeBuilderFlags.UseAliasDefinedOutsideCurrentScope;
const printer = createPrinterWithRemoveComments();
return usingSingleLineStringWriter(writer => {