mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 07:21:18 -05:00
Don't mix NodeBuilder and TypeFormat flags (#55310)
This commit is contained in:
committed by
GitHub
parent
c2cae08802
commit
e50b075b05
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user