mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Don't mix NodeBuilder and TypeFormat flags (#55310)
This commit is contained in:
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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user