diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 6098245cb6c67..2770f601b86e6 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6620,8 +6620,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { } if ( context.flags & NodeBuilderFlags.GenerateNamesForShadowedTypeParams && - type.flags & TypeFlags.TypeParameter && - !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration) + type.flags & TypeFlags.TypeParameter ) { const name = typeParameterToName(type, context); context.approximateLength += idText(name).length; @@ -7510,7 +7509,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { && signature.declaration && signature.declaration !== context.enclosingDeclaration && !isInJSFile(signature.declaration) - && some(expandedParams) + && (some(expandedParams) || some(signature.typeParameters)) ) { // As a performance optimization, reuse the same fake scope within this chain. // This is especially needed when we are working on an excessively deep type; @@ -7534,7 +7533,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const locals = existingFakeScope?.locals ?? createSymbolTable(); let newLocals: __String[] | undefined; - for (const param of expandedParams) { + for (const param of concatenate(expandedParams, map(signature.typeParameters, p => p.symbol))) { if (!locals.has(param.escapedName)) { newLocals = append(newLocals, param.escapedName); locals.set(param.escapedName, param); @@ -8149,7 +8148,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { // `i` we've used thus far, to save work later (context.typeParameterNamesByTextNextNameCount ||= new Map()).set(rawtext, i); (context.typeParameterNames ||= new Map()).set(getTypeId(type), result); - (context.typeParameterNamesByText ||= new Set()).add(rawtext); + (context.typeParameterNamesByText ||= new Set()).add(text); } return result; } @@ -8407,8 +8406,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { includePrivateSymbol?.(sym); } if (isIdentifier(node)) { - const type = getDeclaredTypeOfSymbol(sym); - const name = sym.flags & SymbolFlags.TypeParameter && !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration) ? typeParameterToName(type, context) : factory.cloneNode(node); + const name = sym.flags & SymbolFlags.TypeParameter && context.flags & NodeBuilderFlags.GenerateNamesForShadowedTypeParams ? typeParameterToName(getDeclaredTypeOfSymbol(sym), context) : factory.cloneNode(node); name.symbol = sym; // for quickinfo, which uses identifier symbol information return { introducesError, node: setEmitFlags(setOriginalNode(name, node), EmitFlags.NoAsciiEscaping) }; } @@ -8552,6 +8550,14 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { setEmitFlags(node, EmitFlags.SingleLine); } + if (isTypeLiteralNode(node) && !(context.flags & NodeBuilderFlags.MultilineObjectLiterals)) { + // always clone to add node builder format flags + let visited = visitEachChild(node, visitExistingNodeTreeSymbols, nullTransformationContext); + visited = visited === node ? factory.cloneNode(visited) : visited; + setEmitFlags(visited, EmitFlags.SingleLine); + return visited; + } + return visitEachChild(node, visitExistingNodeTreeSymbols, nullTransformationContext); function getEffectiveDotDotDotForParameter(p: ParameterDeclaration) { diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types index b2b63a2c4e8e3..474e980c43ecb 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types @@ -13,7 +13,7 @@ module A { } export var UnitSquare : { ->UnitSquare : { top: { left: Point; right: Point;}; bottom: { left: Point; right: Point;}; } +>UnitSquare : { top: { left: Point; right: Point; }; bottom: { left: Point; right: Point; }; } top: { left: Point, right: Point }, >top : { left: Point; right: Point; } diff --git a/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.types b/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.types index 3e3334393fdbf..cce94ce1aac6d 100644 --- a/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.types +++ b/tests/baselines/reference/FunctionAndModuleWithSameNameAndCommonRoot.types @@ -35,7 +35,7 @@ module A { === test.ts === var fn: () => { x: number; y: number }; ->fn : () => { x: number; y: number;} +>fn : () => { x: number; y: number; } >x : number >y : number diff --git a/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types b/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types index 6a1233bff157b..5a250921afc07 100644 --- a/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types +++ b/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types @@ -35,7 +35,7 @@ module B { === test.ts === var fn: () => { x: number; y: number }; ->fn : () => { x: number; y: number;} +>fn : () => { x: number; y: number; } >x : number >y : number diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.types b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.types index 1dc36a08ef444..648b7c84b09a0 100644 --- a/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.types +++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.types @@ -84,7 +84,7 @@ var p = Geometry.Origin; >Origin : A.Point var line: { start: { x: number; y: number }; end: { x: number; y: number; } }; ->line : { start: { x: number; y: number;}; end: { x: number; y: number;}; } +>line : { start: { x: number; y: number; }; end: { x: number; y: number; }; } >start : { x: number; y: number; } >x : number >y : number diff --git a/tests/baselines/reference/accessorsOverrideProperty8.types b/tests/baselines/reference/accessorsOverrideProperty8.types index f922554ae6740..4f88f1993b020 100644 --- a/tests/baselines/reference/accessorsOverrideProperty8.types +++ b/tests/baselines/reference/accessorsOverrideProperty8.types @@ -16,7 +16,7 @@ type AnyCtor

= new (...a: any[]) => P >a : any[] declare function classWithProperties(properties: T, klass: AnyCtor

): { ->classWithProperties : (properties: T, klass: AnyCtor

) => { new (): P & Properties; prototype: P & Properties;} +>classWithProperties : (properties: T, klass: AnyCtor

) => { new (): P & Properties; prototype: P & Properties; } >key : string >properties : T >klass : AnyCtor

diff --git a/tests/baselines/reference/aliasUsageInObjectLiteral.types b/tests/baselines/reference/aliasUsageInObjectLiteral.types index f523ac40b7f5c..7bae06186454e 100644 --- a/tests/baselines/reference/aliasUsageInObjectLiteral.types +++ b/tests/baselines/reference/aliasUsageInObjectLiteral.types @@ -30,7 +30,7 @@ var b: { x: IHasVisualizationModel } = { x: moduleA }; >moduleA : typeof moduleA var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } }; ->c : { y: { z: IHasVisualizationModel;}; } +>c : { y: { z: IHasVisualizationModel; }; } >y : { z: IHasVisualizationModel; } >z : IHasVisualizationModel >{ y: { z: moduleA } } : { y: { z: typeof moduleA; }; } diff --git a/tests/baselines/reference/anyAssignabilityInInheritance.types b/tests/baselines/reference/anyAssignabilityInInheritance.types index 91802c6e0adb7..2be1b6f737db4 100644 --- a/tests/baselines/reference/anyAssignabilityInInheritance.types +++ b/tests/baselines/reference/anyAssignabilityInInheritance.types @@ -85,7 +85,7 @@ var r3 = foo3(a); // any >a : any declare function foo7(x: { bar: number }): { bar: number }; ->foo7 : { (x: { bar: number;}): { bar: number;}; (x: any): any; } +>foo7 : { (x: { bar: number; }): { bar: number; }; (x: any): any; } >x : { bar: number; } >bar : number >bar : number diff --git a/tests/baselines/reference/argumentExpressionContextualTyping.types b/tests/baselines/reference/argumentExpressionContextualTyping.types index 7f2a00182a805..193f1b83252ce 100644 --- a/tests/baselines/reference/argumentExpressionContextualTyping.types +++ b/tests/baselines/reference/argumentExpressionContextualTyping.types @@ -47,7 +47,7 @@ var o = { x: ["string", 1], y: { c: true, d: "world", e: 3 } }; >3 : 3 var o1: { x: [string, number], y: { c: boolean, d: string, e: number } } = { x: ["string", 1], y: { c: true, d: "world", e: 3 } }; ->o1 : { x: [string, number]; y: { c: boolean; d: string; e: number;}; } +>o1 : { x: [string, number]; y: { c: boolean; d: string; e: number; }; } >x : [string, number] >y : { c: boolean; d: string; e: number; } >c : boolean diff --git a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types index 032764689df88..773948a4648f7 100644 --- a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types +++ b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types @@ -58,28 +58,28 @@ var es = [(x: string) => 2, (x: Object) => 1]; // { (x:string) => number }[] >1 : 1 var fs = [(a: { x: number; y?: number }) => 1, (b: { x: number; z?: number }) => 2]; // (a: { x: number; y?: number }) => number[] ->fs : (((a: { x: number; y?: number;}) => number) | ((b: { x: number; z?: number;}) => number))[] ->[(a: { x: number; y?: number }) => 1, (b: { x: number; z?: number }) => 2] : (((a: { x: number; y?: number;}) => number) | ((b: { x: number; z?: number;}) => number))[] ->(a: { x: number; y?: number }) => 1 : (a: { x: number; y?: number;}) => number +>fs : (((a: { x: number; y?: number; }) => number) | ((b: { x: number; z?: number; }) => number))[] +>[(a: { x: number; y?: number }) => 1, (b: { x: number; z?: number }) => 2] : (((a: { x: number; y?: number; }) => number) | ((b: { x: number; z?: number; }) => number))[] +>(a: { x: number; y?: number }) => 1 : (a: { x: number; y?: number; }) => number >a : { x: number; y?: number; } >x : number >y : number >1 : 1 ->(b: { x: number; z?: number }) => 2 : (b: { x: number; z?: number;}) => number +>(b: { x: number; z?: number }) => 2 : (b: { x: number; z?: number; }) => number >b : { x: number; z?: number; } >x : number >z : number >2 : 2 var gs = [(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => 1]; // (b: { x: number; z?: number }) => number[] ->gs : (((b: { x: number; z?: number;}) => number) | ((a: { x: number; y?: number;}) => number))[] ->[(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => 1] : (((b: { x: number; z?: number;}) => number) | ((a: { x: number; y?: number;}) => number))[] ->(b: { x: number; z?: number }) => 2 : (b: { x: number; z?: number;}) => number +>gs : (((b: { x: number; z?: number; }) => number) | ((a: { x: number; y?: number; }) => number))[] +>[(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => 1] : (((b: { x: number; z?: number; }) => number) | ((a: { x: number; y?: number; }) => number))[] +>(b: { x: number; z?: number }) => 2 : (b: { x: number; z?: number; }) => number >b : { x: number; z?: number; } >x : number >z : number >2 : 2 ->(a: { x: number; y?: number }) => 1 : (a: { x: number; y?: number;}) => number +>(a: { x: number; y?: number }) => 1 : (a: { x: number; y?: number; }) => number >a : { x: number; y?: number; } >x : number >y : number diff --git a/tests/baselines/reference/arraySigChecking.types b/tests/baselines/reference/arraySigChecking.types index 161463fd6e35d..0cea993b4faec 100644 --- a/tests/baselines/reference/arraySigChecking.types +++ b/tests/baselines/reference/arraySigChecking.types @@ -52,7 +52,7 @@ myArray = [[1, 2]]; >2 : 2 function isEmpty(l: { length: number }) { ->isEmpty : (l: { length: number;}) => boolean +>isEmpty : (l: { length: number; }) => boolean >l : { length: number; } >length : number diff --git a/tests/baselines/reference/assignmentCompatBug5.types b/tests/baselines/reference/assignmentCompatBug5.types index e2703de4e59d6..1c1035c5db89e 100644 --- a/tests/baselines/reference/assignmentCompatBug5.types +++ b/tests/baselines/reference/assignmentCompatBug5.types @@ -2,7 +2,7 @@ === assignmentCompatBug5.ts === function foo1(x: { a: number; }) { } ->foo1 : (x: { a: number;}) => void +>foo1 : (x: { a: number; }) => void >x : { a: number; } >a : number diff --git a/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.types b/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.types index a86aed10bb821..4c404293ccfbc 100644 --- a/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.types +++ b/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.types @@ -2,7 +2,7 @@ === assignmentCompatFunctionsWithOptionalArgs.ts === function foo(x: { id: number; name?: string; }): void; ->foo : (x: { id: number; name?: string;}) => void +>foo : (x: { id: number; name?: string; }) => void >x : { id: number; name?: string; } >id : number >name : string diff --git a/tests/baselines/reference/assignmentCompatOnNew.types b/tests/baselines/reference/assignmentCompatOnNew.types index 2982bd7e03286..7e5cc3a44b1dc 100644 --- a/tests/baselines/reference/assignmentCompatOnNew.types +++ b/tests/baselines/reference/assignmentCompatOnNew.types @@ -5,7 +5,7 @@ class Foo{}; >Foo : Foo function bar(x: {new(): Foo;}){} ->bar : (x: { new (): Foo;}) => void +>bar : (x: { new (): Foo; }) => void >x : new () => Foo bar(Foo); // Error, but should be allowed diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures3.types b/tests/baselines/reference/assignmentCompatWithCallSignatures3.types index 4c11234186aff..4897e7a9ff40b 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures3.types +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures3.types @@ -76,7 +76,7 @@ var a10: (...x: Derived[]) => Derived; >x : Derived[] var a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -94,7 +94,7 @@ var a13: (x: Array, y: Array) => Array; >y : Derived[] var a14: (x: { a: string; b: number }) => Object; ->a14 : (x: { a: string; b: number;}) => Object +>a14 : (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -276,10 +276,10 @@ b8 = a8; // ok >a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived var b9: (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; ->b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.types b/tests/baselines/reference/assignmentCompatWithCallSignatures4.types index 9bbb6314447dc..1803c80f0c3d4 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.types +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.types @@ -52,7 +52,7 @@ module Errors { >x : Base[] var a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -75,7 +75,7 @@ module Errors { }; var a15: (x: { a: string; b: number }) => number; ->a15 : (x: { a: string; b: number;}) => number +>a15 : (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number @@ -160,10 +160,10 @@ module Errors { >a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived2 var b8: (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U; ->b8 : (x: (arg: T) => U, y: (arg2: { foo: number;}) => U) => (r: T) => U +>b8 : (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: number;}) => U +>y : (arg2: { foo: number; }) => U >arg2 : { foo: number; } >foo : number >r : T diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types index beeb022033c73..380cf283f4c78 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types @@ -76,7 +76,7 @@ var a10: new (...x: Derived[]) => Derived; >x : Derived[] var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -94,7 +94,7 @@ var a13: new (x: Array, y: Array) => Array; >y : Derived[] var a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number;}) => Object +>a14 : new (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -276,10 +276,10 @@ b8 = a8; // ok >a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived var b9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; ->b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.types b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.types index 5e3a05a1329fe..66056b5ebda94 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.types +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.types @@ -52,7 +52,7 @@ module Errors { >x : Base[] var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -75,7 +75,7 @@ module Errors { }; var a15: new (x: { a: string; b: number }) => number; ->a15 : new (x: { a: string; b: number;}) => number +>a15 : new (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number @@ -160,10 +160,10 @@ module Errors { >a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived2 var b8: new (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U; ->b8 : new (x: (arg: T) => U, y: (arg2: { foo: number;}) => U) => (r: T) => U +>b8 : new (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: number;}) => U +>y : (arg2: { foo: number; }) => U >arg2 : { foo: number; } >foo : number >r : T diff --git a/tests/baselines/reference/assignmentToParenthesizedIdentifiers.types b/tests/baselines/reference/assignmentToParenthesizedIdentifiers.types index 9e4ac0ffb949c..d0239ece68bf1 100644 --- a/tests/baselines/reference/assignmentToParenthesizedIdentifiers.types +++ b/tests/baselines/reference/assignmentToParenthesizedIdentifiers.types @@ -186,7 +186,7 @@ fn = () => 3; // Bug 823548: Should be error (fn is not a reference) >3 : 3 function fn2(x: number, y: { t: number }) { ->fn2 : (x: number, y: { t: number;}) => void +>fn2 : (x: number, y: { t: number; }) => void >x : number >y : { t: number; } >t : number diff --git a/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.types b/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.types index c27188b2d2ee7..40097f5204b33 100644 --- a/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.types +++ b/tests/baselines/reference/asyncFunctionReturnExpressionErrorSpans.types @@ -3,10 +3,10 @@ === asyncFunctionReturnExpressionErrorSpans.ts === interface Foo { bar: { ->bar : { baz: { inner: { thing: string; };}; } +>bar : { baz: { inner: { thing: string; }; }; } baz: { ->baz : { inner: { thing: string;}; } +>baz : { inner: { thing: string; }; } inner: { >inner : { thing: string; } diff --git a/tests/baselines/reference/awaitUnionPromise.types b/tests/baselines/reference/awaitUnionPromise.types index 14c95ffdb4585..f5e99c33b690c 100644 --- a/tests/baselines/reference/awaitUnionPromise.types +++ b/tests/baselines/reference/awaitUnionPromise.types @@ -17,7 +17,7 @@ interface IAsyncEnumerator { >next3 : () => Promise next4(): Promise; ->next4 : () => Promise +>next4 : () => Promise >x : string } diff --git a/tests/baselines/reference/callChain.2.types b/tests/baselines/reference/callChain.2.types index 845e3dfea5848..a23a131657a0b 100644 --- a/tests/baselines/reference/callChain.2.types +++ b/tests/baselines/reference/callChain.2.types @@ -19,8 +19,8 @@ o2?.b(); >b : () => number declare const o3: { b: (() => { c: string }) | undefined }; ->o3 : { b: (() => { c: string;}) | undefined; } ->b : () => { c: string;} +>o3 : { b: (() => { c: string; }) | undefined; } +>b : () => { c: string; } >c : string o3.b?.().c; diff --git a/tests/baselines/reference/callChain.3.types b/tests/baselines/reference/callChain.3.types index 04b3c2d02032d..8d6cc701e61c3 100644 --- a/tests/baselines/reference/callChain.3.types +++ b/tests/baselines/reference/callChain.3.types @@ -6,7 +6,7 @@ declare function absorb(): T; declare const a: { m?(obj: {x: T}): T } | undefined; >a : { m?(obj: { x: T; }): T; } | undefined ->m : ((obj: { x: T;}) => T) | undefined +>m : ((obj: { x: T; }) => T) | undefined >obj : { x: T; } >x : T diff --git a/tests/baselines/reference/callChain.types b/tests/baselines/reference/callChain.types index aafdc88d22f5d..0b327b0adb557 100644 --- a/tests/baselines/reference/callChain.types +++ b/tests/baselines/reference/callChain.types @@ -108,8 +108,8 @@ o2?.["b"](1, ...[2, 3], 4); >4 : 4 declare const o3: { b: ((...args: any[]) => { c: string }) | undefined }; ->o3 : { b: ((...args: any[]) => { c: string;}) | undefined; } ->b : ((...args: any[]) => { c: string;}) | undefined +>o3 : { b: ((...args: any[]) => { c: string; }) | undefined; } +>b : ((...args: any[]) => { c: string; }) | undefined >args : any[] >c : string diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types index e663dd090d028..35ee53fd23f48 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types @@ -78,7 +78,7 @@ interface A { // T >x : Derived[] a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -96,7 +96,7 @@ interface A { // T >y : Derived[] a14: (x: { a: string; b: number }) => Object; ->a14 : (x: { a: string; b: number;}) => Object +>a14 : (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -204,10 +204,10 @@ interface I extends A { >r : T a9: (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.types index b07e8757cddbf..2ee7845539ee1 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.types @@ -52,7 +52,7 @@ module Errors { >x : Base[] a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -75,7 +75,7 @@ module Errors { }; a15: (x: { a: string; b: number }) => number; ->a15 : (x: { a: string; b: number;}) => number +>a15 : (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number @@ -154,10 +154,10 @@ module Errors { interface I4 extends A { a8: (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U; // error, type mismatch ->a8 : (x: (arg: T) => U, y: (arg2: { foo: number;}) => U) => (r: T) => U +>a8 : (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: number;}) => U +>y : (arg2: { foo: number; }) => U >arg2 : { foo: number; } >foo : number >r : T diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types index 1051543595877..645f8d5da0c6a 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types @@ -79,7 +79,7 @@ interface A { // T >x : Derived[] a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -97,7 +97,7 @@ interface A { // T >y : Derived[] a14: (x: { a: string; b: number }) => Object; ->a14 : (x: { a: string; b: number;}) => Object +>a14 : (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -154,10 +154,10 @@ interface I extends B { >r : T a9: (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types index 1e09a35b27e2d..22784d283b5b7 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types @@ -109,7 +109,7 @@ interface I5 extends A { interface I7 extends A { a11: (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->a11 : (x: { foo: T;}, y: { foo: U; bar: U; }) => Base +>a11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base >x : { foo: T; } >foo : T >y : { foo: U; bar: U; } @@ -119,7 +119,7 @@ interface I7 extends A { interface I9 extends A { a16: (x: { a: T; b: T }) => T[]; ->a16 : (x: { a: T; b: T;}) => T[] +>a16 : (x: { a: T; b: T; }) => T[] >x : { a: T; b: T; } >a : T >b : T diff --git a/tests/baselines/reference/callsOnComplexSignatures.types b/tests/baselines/reference/callsOnComplexSignatures.types index 3a49fd91878ea..a1de9046bae9c 100644 --- a/tests/baselines/reference/callsOnComplexSignatures.types +++ b/tests/baselines/reference/callsOnComplexSignatures.types @@ -112,17 +112,17 @@ function test3(items: string[] | number[]) { } function test4( ->test4 : (arg1: ((...objs: { x: number;}[]) => number) | ((...objs: { y: number;}[]) => number), arg2: ((a: { x: number;}, b: object) => number) | ((a: object, b: { x: number;}) => number), arg3: ((a: { x: number;}, ...objs: { y: number;}[]) => number) | ((...objs: { x: number;}[]) => number), arg4: ((a?: { x: number;}, b?: { x: number;}) => number) | ((a?: { y: number;}) => number), arg5: ((a?: { x: number;}, ...b: { x: number;}[]) => number) | ((a?: { y: number;}) => number), arg6: ((a?: { x: number;}, b?: { x: number;}) => number) | ((...a: { y: number;}[]) => number)) => void +>test4 : (arg1: ((...objs: { x: number; }[]) => number) | ((...objs: { y: number; }[]) => number), arg2: ((a: { x: number; }, b: object) => number) | ((a: object, b: { x: number; }) => number), arg3: ((a: { x: number; }, ...objs: { y: number; }[]) => number) | ((...objs: { x: number; }[]) => number), arg4: ((a?: { x: number; }, b?: { x: number; }) => number) | ((a?: { y: number; }) => number), arg5: ((a?: { x: number; }, ...b: { x: number; }[]) => number) | ((a?: { y: number; }) => number), arg6: ((a?: { x: number; }, b?: { x: number; }) => number) | ((...a: { y: number; }[]) => number)) => void arg1: ((...objs: {x: number}[]) => number) | ((...objs: {y: number}[]) => number), ->arg1 : ((...objs: { x: number;}[]) => number) | ((...objs: { y: number;}[]) => number) +>arg1 : ((...objs: { x: number; }[]) => number) | ((...objs: { y: number; }[]) => number) >objs : { x: number; }[] >x : number >objs : { y: number; }[] >y : number arg2: ((a: {x: number}, b: object) => number) | ((a: object, b: {x: number}) => number), ->arg2 : ((a: { x: number;}, b: object) => number) | ((a: object, b: { x: number;}) => number) +>arg2 : ((a: { x: number; }, b: object) => number) | ((a: object, b: { x: number; }) => number) >a : { x: number; } >x : number >b : object @@ -131,7 +131,7 @@ function test4( >x : number arg3: ((a: {x: number}, ...objs: {y: number}[]) => number) | ((...objs: {x: number}[]) => number), ->arg3 : ((a: { x: number;}, ...objs: { y: number;}[]) => number) | ((...objs: { x: number;}[]) => number) +>arg3 : ((a: { x: number; }, ...objs: { y: number; }[]) => number) | ((...objs: { x: number; }[]) => number) >a : { x: number; } >x : number >objs : { y: number; }[] @@ -140,7 +140,7 @@ function test4( >x : number arg4: ((a?: {x: number}, b?: {x: number}) => number) | ((a?: {y: number}) => number), ->arg4 : ((a?: { x: number;}, b?: { x: number;}) => number) | ((a?: { y: number;}) => number) +>arg4 : ((a?: { x: number; }, b?: { x: number; }) => number) | ((a?: { y: number; }) => number) >a : { x: number; } | undefined >x : number >b : { x: number; } | undefined @@ -149,7 +149,7 @@ function test4( >y : number arg5: ((a?: {x: number}, ...b: {x: number}[]) => number) | ((a?: {y: number}) => number), ->arg5 : ((a?: { x: number;}, ...b: { x: number;}[]) => number) | ((a?: { y: number;}) => number) +>arg5 : ((a?: { x: number; }, ...b: { x: number; }[]) => number) | ((a?: { y: number; }) => number) >a : { x: number; } | undefined >x : number >b : { x: number; }[] @@ -158,7 +158,7 @@ function test4( >y : number arg6: ((a?: {x: number}, b?: {x: number}) => number) | ((...a: {y: number}[]) => number), ->arg6 : ((a?: { x: number;}, b?: { x: number;}) => number) | ((...a: { y: number;}[]) => number) +>arg6 : ((a?: { x: number; }, b?: { x: number; }) => number) | ((...a: { y: number; }[]) => number) >a : { x: number; } | undefined >x : number >b : { x: number; } | undefined @@ -360,7 +360,7 @@ function test5() { // Union of all intrinsics and components of `any` function App(props: { component:React.ReactType }) { ->App : (props: { component: React.ReactType;}) => JSX.Element +>App : (props: { component: React.ReactType; }) => JSX.Element >props : { component: React.ReactType; } >component : React.ReactType >React : any diff --git a/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types b/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types index 9db7bc6e47c21..362b4f00ac197 100644 --- a/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types +++ b/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types @@ -18,7 +18,7 @@ interface Sequence { >value : T groupBy(keySelector: (value: T) => K): Sequence<{ key: K; items: T[]; }>; ->groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: T[];}> +>groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: T[]; }> >keySelector : (value: T) => K >value : T >key : K diff --git a/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.types b/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.types index 49fe7334025d6..f12cdff628fa5 100644 --- a/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.types +++ b/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.types @@ -29,7 +29,7 @@ class AsyncLoader extends React.Component> { } async function load(): Promise<{ success: true } | ErrorResult> { ->load : () => Promise<{ success: true;} | ErrorResult> +>load : () => Promise<{ success: true; } | ErrorResult> >success : true >true : true diff --git a/tests/baselines/reference/checkObjectDefineProperty.types b/tests/baselines/reference/checkObjectDefineProperty.types index db1a1e7954504..9c07d8e0339ef 100644 --- a/tests/baselines/reference/checkObjectDefineProperty.types +++ b/tests/baselines/reference/checkObjectDefineProperty.types @@ -179,7 +179,7 @@ Object.defineProperty(x, "zipStr", { * @param {{name: string}} named */ function takeName(named) { return named.name; } ->takeName : (named: { name: string;}) => string +>takeName : (named: { name: string; }) => string >named : { name: string; } >named.name : string >named : { name: string; } diff --git a/tests/baselines/reference/circularInstantiationExpression.types b/tests/baselines/reference/circularInstantiationExpression.types index 49fb9cb6cf901..65430d609db28 100644 --- a/tests/baselines/reference/circularInstantiationExpression.types +++ b/tests/baselines/reference/circularInstantiationExpression.types @@ -8,6 +8,6 @@ declare function foo(t: T): typeof foo; foo(""); >foo("") : (t: string) => any ->foo : (t: T) => (t: T) => any +>foo : (t: T) => typeof foo >"" : "" diff --git a/tests/baselines/reference/classExtendsInterfaceInExpression.types b/tests/baselines/reference/classExtendsInterfaceInExpression.types index c2c2c9fb7f4e5..c6b12b5a462af 100644 --- a/tests/baselines/reference/classExtendsInterfaceInExpression.types +++ b/tests/baselines/reference/classExtendsInterfaceInExpression.types @@ -4,7 +4,7 @@ interface A {} function factory(a: any): {new(): Object} { ->factory : (a: any) => { new (): Object;} +>factory : (a: any) => { new (): Object; } >a : any return null; diff --git a/tests/baselines/reference/coAndContraVariantInferences.types b/tests/baselines/reference/coAndContraVariantInferences.types index a0d29dc0e80e7..ae64219b63c54 100644 --- a/tests/baselines/reference/coAndContraVariantInferences.types +++ b/tests/baselines/reference/coAndContraVariantInferences.types @@ -20,10 +20,10 @@ declare function fab(arg: A | B): void; >arg : A | B declare function foo(x: { kind: T }, f: (arg: { kind: T }) => void): void; ->foo : (x: { kind: T;}, f: (arg: { kind: T;}) => void) => void +>foo : (x: { kind: T; }, f: (arg: { kind: T; }) => void) => void >x : { kind: T; } >kind : T ->f : (arg: { kind: T;}) => void +>f : (arg: { kind: T; }) => void >arg : { kind: T; } >kind : T diff --git a/tests/baselines/reference/complicatedPrivacy.types b/tests/baselines/reference/complicatedPrivacy.types index c43b086d817f3..b7de7d4812d18 100644 --- a/tests/baselines/reference/complicatedPrivacy.types +++ b/tests/baselines/reference/complicatedPrivacy.types @@ -45,7 +45,7 @@ module m1 { } export function f2(arg1: { x?: C1, y: number }) { ->f2 : (arg1: { x?: C1; y: number;}) => void +>f2 : (arg1: { x?: C1; y: number; }) => void >arg1 : { x?: C1; y: number; } >x : C1 >y : number @@ -62,7 +62,7 @@ module m1 { } export function f4(arg1: ->f4 : (arg1: { [number]: C1;}) => void +>f4 : (arg1: { [number]: C1; }) => void >arg1 : {} { [number]: C1; // Used to be indexer, now it is a computed property diff --git a/tests/baselines/reference/computedPropertiesInDestructuring1.types b/tests/baselines/reference/computedPropertiesInDestructuring1.types index a6066cec239cb..96cad0f5eb296 100644 --- a/tests/baselines/reference/computedPropertiesInDestructuring1.types +++ b/tests/baselines/reference/computedPropertiesInDestructuring1.types @@ -51,32 +51,32 @@ let [{[foo2()]: bar5}] = [{bar: "bar"}]; >"bar" : "bar" function f1({["bar"]: x}: { bar: number }) {} ->f1 : ({ ["bar"]: x }: { bar: number;}) => void +>f1 : ({ ["bar"]: x }: { bar: number; }) => void >"bar" : "bar" >x : number >bar : number function f2({[foo]: x}: { bar: number }) {} ->f2 : ({ [foo]: x }: { bar: number;}) => void +>f2 : ({ [foo]: x }: { bar: number; }) => void >foo : string >x : any >bar : number function f3({[foo2()]: x}: { bar: number }) {} ->f3 : ({ [foo2()]: x }: { bar: number;}) => void +>f3 : ({ [foo2()]: x }: { bar: number; }) => void >foo2() : string >foo2 : () => string >x : any >bar : number function f4([{[foo]: x}]: [{ bar: number }]) {} ->f4 : ([{ [foo]: x }]: [{ bar: number;}]) => void +>f4 : ([{ [foo]: x }]: [{ bar: number; }]) => void >foo : string >x : any >bar : number function f5([{[foo2()]: x}]: [{ bar: number }]) {} ->f5 : ([{ [foo2()]: x }]: [{ bar: number;}]) => void +>f5 : ([{ [foo2()]: x }]: [{ bar: number; }]) => void >foo2() : string >foo2 : () => string >x : any diff --git a/tests/baselines/reference/computedPropertiesInDestructuring1_ES6.types b/tests/baselines/reference/computedPropertiesInDestructuring1_ES6.types index c5843ca11604d..2a68a23345e6b 100644 --- a/tests/baselines/reference/computedPropertiesInDestructuring1_ES6.types +++ b/tests/baselines/reference/computedPropertiesInDestructuring1_ES6.types @@ -58,32 +58,32 @@ let [{[foo2()]: bar5}] = [{bar: "bar"}]; >"bar" : "bar" function f1({["bar"]: x}: { bar: number }) {} ->f1 : ({ ["bar"]: x }: { bar: number;}) => void +>f1 : ({ ["bar"]: x }: { bar: number; }) => void >"bar" : "bar" >x : number >bar : number function f2({[foo]: x}: { bar: number }) {} ->f2 : ({ [foo]: x }: { bar: number;}) => void +>f2 : ({ [foo]: x }: { bar: number; }) => void >foo : string >x : any >bar : number function f3({[foo2()]: x}: { bar: number }) {} ->f3 : ({ [foo2()]: x }: { bar: number;}) => void +>f3 : ({ [foo2()]: x }: { bar: number; }) => void >foo2() : string >foo2 : () => string >x : any >bar : number function f4([{[foo]: x}]: [{ bar: number }]) {} ->f4 : ([{ [foo]: x }]: [{ bar: number;}]) => void +>f4 : ([{ [foo]: x }]: [{ bar: number; }]) => void >foo : string >x : any >bar : number function f5([{[foo2()]: x}]: [{ bar: number }]) {} ->f5 : ([{ [foo2()]: x }]: [{ bar: number;}]) => void +>f5 : ([{ [foo2()]: x }]: [{ bar: number; }]) => void >foo2() : string >foo2 : () => string >x : any diff --git a/tests/baselines/reference/conditionalTypeAssignabilityWhenDeferred.types b/tests/baselines/reference/conditionalTypeAssignabilityWhenDeferred.types index 03887183709b1..f9464ace1fe4c 100644 --- a/tests/baselines/reference/conditionalTypeAssignabilityWhenDeferred.types +++ b/tests/baselines/reference/conditionalTypeAssignabilityWhenDeferred.types @@ -19,7 +19,7 @@ function select< >valueProp : TValueProp export function func(x: XX, tipos: { value: XX }[]) { ->func : (x: XX, tipos: { value: XX;}[]) => void +>func : (x: XX, tipos: { value: XX; }[]) => void >x : XX >tipos : { value: XX; }[] >value : XX @@ -100,7 +100,7 @@ function f(t: T) { } function f2(t1: { x: T; y: T }, t2: T extends T ? { x: T; y: T } : never) { ->f2 : (t1: { x: T; y: T;}, t2: T extends T ? { x: T; y: T;} : never) => void +>f2 : (t1: { x: T; y: T; }, t2: T extends T ? { x: T; y: T; } : never) => void >t1 : { x: T; y: T; } >x : T >y : T diff --git a/tests/baselines/reference/conditionalTypeDoesntSpinForever.types b/tests/baselines/reference/conditionalTypeDoesntSpinForever.types index 71522fb6f000e..ac88c81fcd6af 100644 --- a/tests/baselines/reference/conditionalTypeDoesntSpinForever.types +++ b/tests/baselines/reference/conditionalTypeDoesntSpinForever.types @@ -92,12 +92,12 @@ export enum PubSubRecordIsStoredInRedisAsA { >storedAs : any storedAsJsonEncodedRedisString: () => BuildPubSubRecordType; ->storedAsJsonEncodedRedisString : () => BuildPubSubRecordType +>storedAsJsonEncodedRedisString : () => BuildPubSubRecordType >storedAs : PubSubRecordIsStoredInRedisAsA.jsonEncodedRedisString >PubSubRecordIsStoredInRedisAsA : any storedRedisHash: () => BuildPubSubRecordType; ->storedRedisHash : () => BuildPubSubRecordType +>storedRedisHash : () => BuildPubSubRecordType >storedAs : PubSubRecordIsStoredInRedisAsA.redisHash >PubSubRecordIsStoredInRedisAsA : any } @@ -288,12 +288,12 @@ export enum PubSubRecordIsStoredInRedisAsA { >maxMsToWaitBeforePublishing : any maxMsToWaitBeforePublishing: (t: number) => BuildPubSubRecordType, ->maxMsToWaitBeforePublishing : (t: number) => BuildPubSubRecordType +>maxMsToWaitBeforePublishing : (t: number) => BuildPubSubRecordType >t : number >maxMsToWaitBeforePublishing : number neverDelayPublishing: () => BuildPubSubRecordType, ->neverDelayPublishing : () => BuildPubSubRecordType +>neverDelayPublishing : () => BuildPubSubRecordType >maxMsToWaitBeforePublishing : 0 } diff --git a/tests/baselines/reference/conditionalTypes1.js b/tests/baselines/reference/conditionalTypes1.js index 667c4de7c09a4..b90f9f21605cc 100644 --- a/tests/baselines/reference/conditionalTypes1.js +++ b/tests/baselines/reference/conditionalTypes1.js @@ -649,7 +649,7 @@ type Foo = T extends string ? boolean : number; type Bar = T extends string ? boolean : number; declare const convert: (value: Foo) => Bar; type Baz = Foo; -declare const convert2: (value: Foo) => Foo; +declare const convert2: (value: Foo) => Baz; declare function f31(): void; declare function f32(): void; declare function f33(): void; diff --git a/tests/baselines/reference/conditionalTypes1.types b/tests/baselines/reference/conditionalTypes1.types index 5f9770492ded1..455c7f5291a57 100644 --- a/tests/baselines/reference/conditionalTypes1.types +++ b/tests/baselines/reference/conditionalTypes1.types @@ -136,7 +136,7 @@ type T15 = Extract; // never >q : "a" declare function f5(p: K): Extract; ->f5 : (p: K) => Extract +>f5 : (p: K) => Extract >p : K >k : K @@ -789,8 +789,8 @@ type Baz = Foo; >Baz : Baz const convert2 = (value: Foo): Baz => value; ->convert2 : (value: Foo) => Foo ->(value: Foo): Baz => value : (value: Foo) => Foo +>convert2 : (value: Foo) => Baz +>(value: Foo): Baz => value : (value: Foo) => Baz >value : Foo >value : Foo diff --git a/tests/baselines/reference/conditionalTypes2.types b/tests/baselines/reference/conditionalTypes2.types index 41b259a447daf..09597c2dbff7f 100644 --- a/tests/baselines/reference/conditionalTypes2.types +++ b/tests/baselines/reference/conditionalTypes2.types @@ -151,13 +151,13 @@ type Bar = { bar: string }; >bar : string declare function fooBar(x: { foo: string, bar: string }): void; ->fooBar : (x: { foo: string; bar: string;}) => void +>fooBar : (x: { foo: string; bar: string; }) => void >x : { foo: string; bar: string; } >foo : string >bar : string declare function fooBat(x: { foo: string, bat: string }): void; ->fooBat : (x: { foo: string; bat: string;}) => void +>fooBat : (x: { foo: string; bat: string; }) => void >x : { foo: string; bat: string; } >foo : string >bat : string diff --git a/tests/baselines/reference/conditionalTypesSimplifyWhenTrivial.types b/tests/baselines/reference/conditionalTypesSimplifyWhenTrivial.types index 46173b625832e..2f27a38d71b26 100644 --- a/tests/baselines/reference/conditionalTypesSimplifyWhenTrivial.types +++ b/tests/baselines/reference/conditionalTypesSimplifyWhenTrivial.types @@ -59,8 +59,8 @@ type ExcludeWithDefault = T extends U ? D : T; >ExcludeWithDefault : ExcludeWithDefault const fn5 = ( ->fn5 : (params: Pick>) => Params ->( params: Pick>,): Params => params : (params: Pick>) => Params +>fn5 : (params: Pick>) => Params +>( params: Pick>,): Params => params : (params: Pick>) => Params params: Pick>, >params : Pick> @@ -83,8 +83,8 @@ function fn6(x: ExcludeWithDefault) { } const fn7 = ( ->fn7 : (params: Pick>) => Params ->( params: Pick>,): Params => params : (params: Pick>) => Params +>fn7 : (params: Pick>) => Params +>( params: Pick>,): Params => params : (params: Pick>) => Params params: Pick>, >params : Pick> diff --git a/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types b/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types index 21b55ae75a2ef..64be2e260dda2 100644 --- a/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types +++ b/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types @@ -9,7 +9,7 @@ declare module "./index" { interface LoDashStatic { pick: ( ->pick : (object: T, ...props: U[]) => Pick +>pick : (object: T, ...props: Array) => Pick object: T, >object : T diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types index 0bed3a62c2184..839871188fc3f 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types @@ -78,7 +78,7 @@ interface A { // T >x : Derived[] a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -96,7 +96,7 @@ interface A { // T >y : Derived[] a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number;}) => Object +>a14 : new (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -204,10 +204,10 @@ interface I extends A { >r : T a9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.types index 05dd7752d4573..694d652e967c0 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.types @@ -52,7 +52,7 @@ module Errors { >x : Base[] a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -75,7 +75,7 @@ module Errors { }; a15: new (x: { a: string; b: number }) => number; ->a15 : new (x: { a: string; b: number;}) => number +>a15 : new (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number @@ -130,10 +130,10 @@ module Errors { interface I4 extends A { a8: new (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U; // error, type mismatch ->a8 : new (x: (arg: T) => U, y: (arg2: { foo: number;}) => U) => (r: T) => U +>a8 : new (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: number;}) => U +>y : (arg2: { foo: number; }) => U >arg2 : { foo: number; } >foo : number >r : T diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types index 586f63a410f87..a8fddee385ca4 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types @@ -79,7 +79,7 @@ interface A { // T >x : Derived[] a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -97,7 +97,7 @@ interface A { // T >y : Derived[] a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number;}) => Object +>a14 : new (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -154,10 +154,10 @@ interface I extends B { >r : T a9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types index 065dd2478a504..623aa21226b8f 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types @@ -109,7 +109,7 @@ interface I5 extends A { interface I7 extends A { a11: new (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->a11 : new (x: { foo: T;}, y: { foo: U; bar: U; }) => Base +>a11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base >x : { foo: T; } >foo : T >y : { foo: U; bar: U; } @@ -119,7 +119,7 @@ interface I7 extends A { interface I9 extends A { a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T;}) => T[] +>a16 : new (x: { a: T; b: T; }) => T[] >x : { a: T; b: T; } >a : T >b : T diff --git a/tests/baselines/reference/constructorAsType.types b/tests/baselines/reference/constructorAsType.types index 9fdba02dc2587..f80999fef081f 100644 --- a/tests/baselines/reference/constructorAsType.types +++ b/tests/baselines/reference/constructorAsType.types @@ -2,7 +2,7 @@ === constructorAsType.ts === var Person:new () => {name: string;} = function () {return {name:"joe"};}; ->Person : new () => { name: string;} +>Person : new () => { name: string; } >name : string >function () {return {name:"joe"};} : () => { name: string; } >{name:"joe"} : { name: string; } @@ -10,7 +10,7 @@ var Person:new () => {name: string;} = function () {return {name:"joe"};}; >"joe" : "joe" var Person2:{new() : {name:string;};}; ->Person2 : new () => { name: string;} +>Person2 : new () => { name: string; } >name : string Person = Person2; diff --git a/tests/baselines/reference/contextualOverloadListFromUnionWithPrimitiveNoImplicitAny.types b/tests/baselines/reference/contextualOverloadListFromUnionWithPrimitiveNoImplicitAny.types index 39334a18c70f7..639b462729297 100644 --- a/tests/baselines/reference/contextualOverloadListFromUnionWithPrimitiveNoImplicitAny.types +++ b/tests/baselines/reference/contextualOverloadListFromUnionWithPrimitiveNoImplicitAny.types @@ -13,7 +13,7 @@ interface FullRule { >validate : string | RegExp | Validate normalize?: (match: {x: string}) => void; ->normalize : ((match: { x: string;}) => void) | undefined +>normalize : ((match: { x: string; }) => void) | undefined >match : { x: string; } >x : string } diff --git a/tests/baselines/reference/contextualSignatureConditionalTypeInstantiationUsingDefault.types b/tests/baselines/reference/contextualSignatureConditionalTypeInstantiationUsingDefault.types index 8c6780bfae1a0..45716ed622b06 100644 --- a/tests/baselines/reference/contextualSignatureConditionalTypeInstantiationUsingDefault.types +++ b/tests/baselines/reference/contextualSignatureConditionalTypeInstantiationUsingDefault.types @@ -20,7 +20,7 @@ type ActionFunction = (event: TEvent) => void; >event : TEvent declare function createMachine< ->createMachine : (config: { types?: TTypesMeta;}, implementations: TTypesMeta extends TypegenEnabled ? ActionFunction<{ type: "test";}> : ActionFunction<{ type: string;}>) => void +>createMachine : (config: { types?: TTypesMeta; }, implementations: TTypesMeta extends TypegenEnabled ? ActionFunction<{ type: "test"; }> : ActionFunction<{ type: string; }>) => void TTypesMeta extends TypegenEnabled | TypegenDisabled = TypegenDisabled >( diff --git a/tests/baselines/reference/contextualTypeFromJSDoc.types b/tests/baselines/reference/contextualTypeFromJSDoc.types index 5230872e2f30b..a023f8621fca6 100644 --- a/tests/baselines/reference/contextualTypeFromJSDoc.types +++ b/tests/baselines/reference/contextualTypeFromJSDoc.types @@ -24,7 +24,7 @@ const arr = [ /** @return {Array<[string, {x?:number, y?:number}]>} */ function f() { ->f : () => Array<[string, { x?: number; y?: number;}]> +>f : () => Array<[string, { x?: number; y?: number; }]> return [ >[ ['a', { x: 1 }], ['b', { y: 2 }] ] : ([string, { x: number; }] | [string, { y: number; }])[] diff --git a/tests/baselines/reference/contextualTypeOfIndexedAccessParameter.types b/tests/baselines/reference/contextualTypeOfIndexedAccessParameter.types index 49aa2be3ac271..11a17613871c8 100644 --- a/tests/baselines/reference/contextualTypeOfIndexedAccessParameter.types +++ b/tests/baselines/reference/contextualTypeOfIndexedAccessParameter.types @@ -31,7 +31,7 @@ f("a", { }); function g< ->g : (x: ({ a: string;} & { b: string;})[K], y: string) => void +>g : (x: ({ a: string; } & { b: string; })[K], y: string) => void K extends "a" | "b">(x: ({ a: string } & { b: string })[K], y: string) { >x : ({ a: string; } & { b: string; })[K] diff --git a/tests/baselines/reference/contextualTyping25.types b/tests/baselines/reference/contextualTyping25.types index 93e0c92bfc600..4198bccfa836e 100644 --- a/tests/baselines/reference/contextualTyping25.types +++ b/tests/baselines/reference/contextualTyping25.types @@ -2,7 +2,7 @@ === contextualTyping25.ts === function foo(param:{id:number;}){}; foo(<{id:number;}>({})); ->foo : (param: { id: number;}) => void +>foo : (param: { id: number; }) => void >param : { id: number; } >id : number >foo(<{id:number;}>({})) : void diff --git a/tests/baselines/reference/contextualTyping26.types b/tests/baselines/reference/contextualTyping26.types index cf7bd395409eb..17e1797ffa3c1 100644 --- a/tests/baselines/reference/contextualTyping26.types +++ b/tests/baselines/reference/contextualTyping26.types @@ -2,7 +2,7 @@ === contextualTyping26.ts === function foo(param:{id:number;}){}; foo(<{id:number;}>({})); ->foo : (param: { id: number;}) => void +>foo : (param: { id: number; }) => void >param : { id: number; } >id : number >foo(<{id:number;}>({})) : void diff --git a/tests/baselines/reference/contextualTyping27.types b/tests/baselines/reference/contextualTyping27.types index 6a7a85d8c0242..6d40ba5cbc63b 100644 --- a/tests/baselines/reference/contextualTyping27.types +++ b/tests/baselines/reference/contextualTyping27.types @@ -2,7 +2,7 @@ === contextualTyping27.ts === function foo(param:{id:number;}){}; foo(<{id:number;}>({})); ->foo : (param: { id: number;}) => void +>foo : (param: { id: number; }) => void >param : { id: number; } >id : number >foo(<{id:number;}>({})) : void diff --git a/tests/baselines/reference/contextualTypingOfOptionalMembers.types b/tests/baselines/reference/contextualTypingOfOptionalMembers.types index c6a325dafc27a..07b389f0b244a 100644 --- a/tests/baselines/reference/contextualTypingOfOptionalMembers.types +++ b/tests/baselines/reference/contextualTypingOfOptionalMembers.types @@ -174,7 +174,7 @@ interface ActionsObjectOr { } declare function App4>(props: Options["actions"] & { state: State }): JSX.Element; ->App4 : >(props: Options["actions"] & { state: State;}) => JSX.Element +>App4 : >(props: Options["actions"] & { state: State; }) => JSX.Element >props : (string | Actions) & { state: State; } >state : State >JSX : any diff --git a/tests/baselines/reference/contextuallyTypedJsxChildren.types b/tests/baselines/reference/contextuallyTypedJsxChildren.types index 3f0308bbf3be9..07ee50cd91457 100644 --- a/tests/baselines/reference/contextuallyTypedJsxChildren.types +++ b/tests/baselines/reference/contextuallyTypedJsxChildren.types @@ -17,7 +17,7 @@ declare namespace DropdownMenu { } interface PropsWithChildren extends BaseProps { children(props: { onClose: () => void }): JSX.Element; ->children : (props: { onClose: () => void;}) => JSX.Element +>children : (props: { onClose: () => void; }) => JSX.Element >props : { onClose: () => void; } >onClose : () => void >JSX : any diff --git a/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=false).types b/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=false).types index f54c06194349f..674270763dac4 100644 --- a/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=false).types +++ b/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=false).types @@ -9,7 +9,7 @@ declare function match(cb: (value: T) => boolean): T; >value : T declare function foo(pos: { x?: number; y?: number }): boolean; ->foo : (pos: { x?: number; y?: number;}) => boolean +>foo : (pos: { x?: number; y?: number; }) => boolean >pos : { x?: number | undefined; y?: number | undefined; } >x : number | undefined >y : number | undefined diff --git a/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=true).types b/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=true).types index df0a98863d77e..da82a6d39556c 100644 --- a/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=true).types +++ b/tests/baselines/reference/contextuallyTypedOptionalProperty(exactoptionalpropertytypes=true).types @@ -9,7 +9,7 @@ declare function match(cb: (value: T) => boolean): T; >value : T declare function foo(pos: { x?: number; y?: number }): boolean; ->foo : (pos: { x?: number; y?: number;}) => boolean +>foo : (pos: { x?: number; y?: number; }) => boolean >pos : { x?: number; y?: number; } >x : number | undefined >y : number | undefined diff --git a/tests/baselines/reference/contextuallyTypedParametersWithInitializers.types b/tests/baselines/reference/contextuallyTypedParametersWithInitializers.types index e55c3685d7ab8..9f637bcb4a9c2 100644 --- a/tests/baselines/reference/contextuallyTypedParametersWithInitializers.types +++ b/tests/baselines/reference/contextuallyTypedParametersWithInitializers.types @@ -11,13 +11,13 @@ declare function id2 any>(input: T): T; >input : T declare function id3 any>(input: T): T; ->id3 : any>(input: T) => T +>id3 : any>(input: T) => T >x : { foo: any; } >foo : any >input : T declare function id4 any>(input: T): T; ->id4 : any>(input: T) => T +>id4 : any>(input: T) => T >x : { foo?: number | undefined; } >foo : number | undefined >input : T diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.types b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.types index 382b8592ff7c3..785f69db001a4 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.types +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes01.types @@ -13,8 +13,8 @@ namespace JSX { } const FooComponent = (props: { foo: "A" | "B" | "C" }) => {props.foo}; ->FooComponent : (props: { foo: "A" | "B" | "C";}) => JSX.Element ->(props: { foo: "A" | "B" | "C" }) => {props.foo} : (props: { foo: "A" | "B" | "C";}) => JSX.Element +>FooComponent : (props: { foo: "A" | "B" | "C"; }) => JSX.Element +>(props: { foo: "A" | "B" | "C" }) => {props.foo} : (props: { foo: "A" | "B" | "C"; }) => JSX.Element >props : { foo: "A" | "B" | "C"; } >foo : "A" | "B" | "C" >{props.foo} : JSX.Element diff --git a/tests/baselines/reference/controlFlowAliasing.types b/tests/baselines/reference/controlFlowAliasing.types index b93de24a3aaf9..9184a3d22ed38 100644 --- a/tests/baselines/reference/controlFlowAliasing.types +++ b/tests/baselines/reference/controlFlowAliasing.types @@ -138,7 +138,7 @@ function f14(x: number | null | undefined): number | null { } function f15(obj: { readonly x: string | number }) { ->f15 : (obj: { readonly x: string | number;}) => void +>f15 : (obj: { readonly x: string | number; }) => void >obj : { readonly x: string | number; } >x : string | number @@ -163,7 +163,7 @@ function f15(obj: { readonly x: string | number }) { } function f16(obj: { readonly x: string | number }) { ->f16 : (obj: { readonly x: string | number;}) => void +>f16 : (obj: { readonly x: string | number; }) => void >obj : { readonly x: string | number; } >x : string | number @@ -249,7 +249,7 @@ function f18(obj: readonly [string | number]) { } function f20(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f20 : (obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f20 : (obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -281,7 +281,7 @@ function f20(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f21(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f21 : (obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f21 : (obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -313,7 +313,7 @@ function f21(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f22(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f22 : (obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f22 : (obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -345,7 +345,7 @@ function f22(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f23(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f23 : (obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f23 : (obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -382,7 +382,7 @@ function f23(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f24(arg: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f24 : (arg: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f24 : (arg: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >arg : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -418,7 +418,7 @@ function f24(arg: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f25(arg: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f25 : (arg: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f25 : (arg: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >arg : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -454,8 +454,8 @@ function f25(arg: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f26(outer: { readonly obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number } }) { ->f26 : (outer: { readonly obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; };}) => void ->outer : { readonly obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}; } +>f26 : (outer: { readonly obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }; }) => void +>outer : { readonly obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }; } >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -493,8 +493,8 @@ function f26(outer: { readonly obj: { kind: 'foo', foo: string } | { kind: 'bar' } function f27(outer: { obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number } }) { ->f27 : (outer: { obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; };}) => void ->outer : { obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}; } +>f27 : (outer: { obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }; }) => void +>outer : { obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }; } >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string @@ -532,7 +532,7 @@ function f27(outer: { obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: nu } function f28(obj?: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f28 : (obj?: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f28 : (obj?: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } | undefined >kind : "foo" >foo : string @@ -642,7 +642,7 @@ function f31(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { } function f32(obj: { kind: 'foo', foo: string } | { kind: 'bar', bar: number }) { ->f32 : (obj: { kind: 'foo'; foo: string;} | { kind: 'bar'; bar: number;}) => void +>f32 : (obj: { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; }) => void >obj : { kind: 'foo'; foo: string; } | { kind: 'bar'; bar: number; } >kind : "foo" >foo : string diff --git a/tests/baselines/reference/controlFlowArrays.types b/tests/baselines/reference/controlFlowArrays.types index cdd4cd00b570c..980c9d8bd09c0 100644 --- a/tests/baselines/reference/controlFlowArrays.types +++ b/tests/baselines/reference/controlFlowArrays.types @@ -617,7 +617,7 @@ function f18() { // Repro from #39470 declare function foo(arg: { val: number }[]): void; ->foo : (arg: { val: number;}[]) => void +>foo : (arg: { val: number; }[]) => void >arg : { val: number; }[] >val : number diff --git a/tests/baselines/reference/controlFlowGenericTypes.types b/tests/baselines/reference/controlFlowGenericTypes.types index b5ebc7a07ee5b..615b1a5a5bd35 100644 --- a/tests/baselines/reference/controlFlowGenericTypes.types +++ b/tests/baselines/reference/controlFlowGenericTypes.types @@ -2,7 +2,7 @@ === controlFlowGenericTypes.ts === function f1(x: T, y: { a: T }, z: [T]): string { ->f1 : (x: T, y: { a: T;}, z: [T]) => string +>f1 : (x: T, y: { a: T; }, z: [T]) => string >x : T >y : { a: T; } >a : T diff --git a/tests/baselines/reference/controlFlowIterationErrorsAsync.types b/tests/baselines/reference/controlFlowIterationErrorsAsync.types index eea08303e00e0..927e48e502602 100644 --- a/tests/baselines/reference/controlFlowIterationErrorsAsync.types +++ b/tests/baselines/reference/controlFlowIterationErrorsAsync.types @@ -348,7 +348,7 @@ async () => { // repro #43047#issuecomment-874221939 declare function myQuery(input: { lastId: number | undefined }): Promise<{ entities: number[] }>; ->myQuery : (input: { lastId: number | undefined;}) => Promise<{ entities: number[];}> +>myQuery : (input: { lastId: number | undefined; }) => Promise<{ entities: number[]; }> >input : { lastId: number | undefined; } >lastId : number | undefined >entities : number[] diff --git a/tests/baselines/reference/controlFlowOptionalChain.types b/tests/baselines/reference/controlFlowOptionalChain.types index 2df13c173365a..065598377320d 100644 --- a/tests/baselines/reference/controlFlowOptionalChain.types +++ b/tests/baselines/reference/controlFlowOptionalChain.types @@ -321,8 +321,8 @@ o4.x.y; >y : boolean declare const o5: { x?: { y: { z?: { w: boolean } } } }; ->o5 : { x?: { y: { z?: { w: boolean; };}; } | undefined; } ->x : { y: { z?: { w: boolean; };}; } | undefined +>o5 : { x?: { y: { z?: { w: boolean; }; }; } | undefined; } +>x : { y: { z?: { w: boolean; }; }; } | undefined >y : { z?: { w: boolean; } | undefined; } >z : { w: boolean; } | undefined >w : boolean diff --git a/tests/baselines/reference/correlatedUnions.js b/tests/baselines/reference/correlatedUnions.js index 5335811054601..05e77d8b4d3e1 100644 --- a/tests/baselines/reference/correlatedUnions.js +++ b/tests/baselines/reference/correlatedUnions.js @@ -602,7 +602,7 @@ type SameKeys = { }; }; type MappedFromOriginal = SameKeys; -declare const getStringAndNumberFromOriginalAndMapped: (original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N) => [Original[K][N], SameKeys[K][N]]; +declare const getStringAndNumberFromOriginalAndMapped: (original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N) => [Original[K][N], MappedFromOriginal[K][N]]; interface Config { string: string; number: number; diff --git a/tests/baselines/reference/correlatedUnions.types b/tests/baselines/reference/correlatedUnions.types index 8d328d6c66f79..70cb53fee6925 100644 --- a/tests/baselines/reference/correlatedUnions.types +++ b/tests/baselines/reference/correlatedUnions.types @@ -797,8 +797,8 @@ type MappedFromOriginal = SameKeys; >MappedFromOriginal : SameKeys const getStringAndNumberFromOriginalAndMapped = < ->getStringAndNumberFromOriginalAndMapped : (original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N) => [Original[K][N], SameKeys[K][N]] ->< K extends KeyOfOriginal, N extends NestedKeyOfOriginalFor>( original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N): [Original[K][N], MappedFromOriginal[K][N]] => { return [original[key][nestedKey], mappedFromOriginal[key][nestedKey]];} : (original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N) => [Original[K][N], SameKeys[K][N]] +>getStringAndNumberFromOriginalAndMapped : (original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N) => [Original[K][N], MappedFromOriginal[K][N]] +>< K extends KeyOfOriginal, N extends NestedKeyOfOriginalFor>( original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N): [Original[K][N], MappedFromOriginal[K][N]] => { return [original[key][nestedKey], mappedFromOriginal[key][nestedKey]];} : (original: Original, mappedFromOriginal: MappedFromOriginal, key: K, nestedKey: N) => [Original[K][N], MappedFromOriginal[K][N]] K extends KeyOfOriginal, N extends NestedKeyOfOriginalFor diff --git a/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types b/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types index 42423a730db8c..a3fc8a5898e5f 100644 --- a/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types +++ b/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types @@ -2,7 +2,7 @@ === locale.d.ts === export type Locale = { ->Locale : { weekdays: { shorthand: [string, string, string, string, string, string, string]; longhand: [string, string, string, string, string, string, string];}; } +>Locale : { weekdays: { shorthand: [string, string, string, string, string, string, string]; longhand: [string, string, string, string, string, string, string]; }; } weekdays: { >weekdays : { shorthand: [string, string, string, string, string, string, string]; longhand: [string, string, string, string, string, string, string]; } @@ -16,7 +16,7 @@ export type Locale = { }; }; export type CustomLocale = { ->CustomLocale : { weekdays: { shorthand: [string, string, string, string, string, string, string]; longhand: [string, string, string, string, string, string, string];}; } +>CustomLocale : { weekdays: { shorthand: [string, string, string, string, string, string, string]; longhand: [string, string, string, string, string, string, string]; }; } weekdays: { >weekdays : { shorthand: [string, string, string, string, string, string, string]; longhand: [string, string, string, string, string, string, string]; } diff --git a/tests/baselines/reference/declarationEmitDestructuring1.types b/tests/baselines/reference/declarationEmitDestructuring1.types index 6c0947bf70628..d01785433f65c 100644 --- a/tests/baselines/reference/declarationEmitDestructuring1.types +++ b/tests/baselines/reference/declarationEmitDestructuring1.types @@ -14,7 +14,7 @@ function far([a, [b], [[c]]]: [number, boolean[], string[][]]): void { } >c : string function bar({a1, b1, c1}: { a1: number, b1: boolean, c1: string }): void { } ->bar : ({ a1, b1, c1 }: { a1: number; b1: boolean; c1: string;}) => void +>bar : ({ a1, b1, c1 }: { a1: number; b1: boolean; c1: string; }) => void >a1 : number >b1 : boolean >c1 : string @@ -23,7 +23,7 @@ function bar({a1, b1, c1}: { a1: number, b1: boolean, c1: string }): void { } >c1 : string function baz({a2, b2: {b1, c1}}: { a2: number, b2: { b1: boolean, c1: string } }): void { } ->baz : ({ a2, b2: { b1, c1 } }: { a2: number; b2: { b1: boolean; c1: string; };}) => void +>baz : ({ a2, b2: { b1, c1 } }: { a2: number; b2: { b1: boolean; c1: string; }; }) => void >a2 : number >b2 : any >b1 : boolean diff --git a/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types b/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types index 7e957edd1194d..0998f1a5536d9 100644 --- a/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types +++ b/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types @@ -13,7 +13,7 @@ function foo(...rest: any[]) { } function foo2( { x, y, z }?: { x: string; y: number; z: boolean }); ->foo2 : ({ x, y, z }?: { x: string; y: number; z: boolean;}) => any +>foo2 : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => any >x : string >y : number >z : boolean diff --git a/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.types b/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.types index db4441e8afd5e..029e8942c49a9 100644 --- a/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.types +++ b/tests/baselines/reference/declarationEmitDestructuringWithOptionalBindingParameters.types @@ -8,7 +8,7 @@ function foo([x,y,z]?: [string, number, boolean]) { >z : boolean } function foo1( { x, y, z }?: { x: string; y: number; z: boolean }) { ->foo1 : ({ x, y, z }?: { x: string; y: number; z: boolean;}) => void +>foo1 : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => void >x : string >y : number >z : boolean diff --git a/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types index b3f1ab2f1136b..ce30394a12254 100644 --- a/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types +++ b/tests/baselines/reference/declarationEmitDistributiveConditionalWithInfer.types @@ -7,7 +7,7 @@ export const fun = ( >( subFun: () => FlatArray[]) => { } : (subFun: () => (Collection[Field] extends readonly (infer InnerArr)[] ? InnerArr : Collection[Field])[]) => void subFun: () ->subFun : () => (Collection[Field] extends readonly (infer InnerArr)[] ? InnerArr : Collection[Field])[] +>subFun : () => FlatArray[] => FlatArray[]) => { }; diff --git a/tests/baselines/reference/declarationEmitDuplicateParameterDestructuring.types b/tests/baselines/reference/declarationEmitDuplicateParameterDestructuring.types index 2bdaf6c1a885f..f0fe0fac673af 100644 --- a/tests/baselines/reference/declarationEmitDuplicateParameterDestructuring.types +++ b/tests/baselines/reference/declarationEmitDuplicateParameterDestructuring.types @@ -2,8 +2,8 @@ === declarationEmitDuplicateParameterDestructuring.ts === export const fn1 = ({ prop: a, prop: b }: { prop: number }) => a + b; ->fn1 : ({ prop: a, prop: b }: { prop: number;}) => number ->({ prop: a, prop: b }: { prop: number }) => a + b : ({ prop: a, prop: b }: { prop: number;}) => number +>fn1 : ({ prop: a, prop: b }: { prop: number; }) => number +>({ prop: a, prop: b }: { prop: number }) => a + b : ({ prop: a, prop: b }: { prop: number; }) => number >prop : any >a : number >prop : any @@ -14,8 +14,8 @@ export const fn1 = ({ prop: a, prop: b }: { prop: number }) => a + b; >b : number export const fn2 = ({ prop: a }: { prop: number }, { prop: b }: { prop: number }) => a + b; ->fn2 : ({ prop: a }: { prop: number;}, { prop: b }: { prop: number;}) => number ->({ prop: a }: { prop: number }, { prop: b }: { prop: number }) => a + b : ({ prop: a }: { prop: number;}, { prop: b }: { prop: number;}) => number +>fn2 : ({ prop: a }: { prop: number; }, { prop: b }: { prop: number; }) => number +>({ prop: a }: { prop: number }, { prop: b }: { prop: number }) => a + b : ({ prop: a }: { prop: number; }, { prop: b }: { prop: number; }) => number >prop : any >a : number >prop : number diff --git a/tests/baselines/reference/declarationEmitOptionalMethod.types b/tests/baselines/reference/declarationEmitOptionalMethod.types index 695cd13177e22..3eb1e4af8f985 100644 --- a/tests/baselines/reference/declarationEmitOptionalMethod.types +++ b/tests/baselines/reference/declarationEmitOptionalMethod.types @@ -2,8 +2,8 @@ === declarationEmitOptionalMethod.ts === export const Foo = (opts: { ->Foo : (opts: { a?(): void; b?: () => void;}) => { c?(): void; d?: () => void;} ->(opts: { a?(): void, b?: () => void,}): { c?(): void, d?: () => void,} => ({ }) : (opts: { a?(): void; b?: () => void;}) => { c?(): void; d?: () => void;} +>Foo : (opts: { a?(): void; b?: () => void; }) => { c?(): void; d?: () => void; } +>(opts: { a?(): void, b?: () => void,}): { c?(): void, d?: () => void,} => ({ }) : (opts: { a?(): void; b?: () => void; }) => { c?(): void; d?: () => void; } >opts : { a?(): void; b?: (() => void) | undefined; } a?(): void, diff --git a/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js b/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js index fca79b431ed2a..dec8e1bbe65e9 100644 --- a/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js +++ b/tests/baselines/reference/declarationEmitPrivatePromiseLikeInterface.js @@ -72,6 +72,6 @@ export interface HttpResponse ex error: E; } export declare class HttpClient { - request: () => TPromise, any>; + request: () => TPromise>; } export {}; diff --git a/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.js b/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.js new file mode 100644 index 0000000000000..bbf4da08184d4 --- /dev/null +++ b/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.js @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/declarationEmitReusesLambdaParameterNodes.ts] //// + +//// [index.d.ts] +export type Whatever = {x: string, y: number}; +export type Props = Omit & Partial & T; + +//// [index.ts] +import { Props } from "react-select"; + +export const CustomSelect1 = (x: Props

(x: { body: PostBody

}, y: { body: PostBody

}) { ->fx1 :

(x: { body: PostBody

;}, y: { body: PostBody

;}) => void +>fx1 :

(x: { body: PostBody

; }, y: { body: PostBody

; }) => void >x : { body: PostBody

; } >body : PostBody

>y : { body: PostBody

; } diff --git a/tests/baselines/reference/identityRelationNeverTypes.types b/tests/baselines/reference/identityRelationNeverTypes.types index 0d8222adc7349..acd34c2c96388 100644 --- a/tests/baselines/reference/identityRelationNeverTypes.types +++ b/tests/baselines/reference/identityRelationNeverTypes.types @@ -24,7 +24,7 @@ declare class State { } function f1(state: State<{ foo: number }>) { ->f1 : (state: State<{ foo: number;}>) => void +>f1 : (state: State<{ foo: number; }>) => void >state : State<{ foo: number; }> >foo : number diff --git a/tests/baselines/reference/illegalGenericWrapping1.types b/tests/baselines/reference/illegalGenericWrapping1.types index d15935bef60bb..771809d739640 100644 --- a/tests/baselines/reference/illegalGenericWrapping1.types +++ b/tests/baselines/reference/illegalGenericWrapping1.types @@ -18,7 +18,7 @@ interface Sequence { >value : T groupBy(keySelector: (value: T) => K): Sequence<{ key: K; items: Sequence; }>; ->groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: Sequence;}> +>groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: Sequence; }> >keySelector : (value: T) => K >value : T >key : K diff --git a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.types b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.types index 4492651611974..af8df155cf68d 100644 --- a/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.types +++ b/tests/baselines/reference/implicitAnyFunctionInvocationWithAnyArguements.types @@ -36,7 +36,7 @@ function testFunctionExprC2(eq: (v1: any, v2: any) => number) { }; >v2 : any function testObjLiteral(objLit: { v: any; w: any }) { }; ->testObjLiteral : (objLit: { v: any; w: any;}) => void +>testObjLiteral : (objLit: { v: any; w: any; }) => void >objLit : { v: any; w: any; } >v : any >w : any diff --git a/tests/baselines/reference/inKeywordAndIntersection.types b/tests/baselines/reference/inKeywordAndIntersection.types index 826b26714a36f..5eb3098022eb9 100644 --- a/tests/baselines/reference/inKeywordAndIntersection.types +++ b/tests/baselines/reference/inKeywordAndIntersection.types @@ -12,7 +12,7 @@ class B { b = 0 } >0 : 0 function f10(obj: A & { x: string } | B) { ->f10 : (obj: (A & { x: string;}) | B) => void +>f10 : (obj: (A & { x: string; }) | B) => void >obj : B | (A & { x: string; }) >x : string diff --git a/tests/baselines/reference/inKeywordTypeguard(strict=false).types b/tests/baselines/reference/inKeywordTypeguard(strict=false).types index 66ce2de68eee0..81cb6dd12864f 100644 --- a/tests/baselines/reference/inKeywordTypeguard(strict=false).types +++ b/tests/baselines/reference/inKeywordTypeguard(strict=false).types @@ -301,7 +301,7 @@ class UnreachableCodeDetection { } function positiveIntersectionTest(x: { a: string } & { b: string }) { ->positiveIntersectionTest : (x: { a: string;} & { b: string;}) => void +>positiveIntersectionTest : (x: { a: string; } & { b: string; }) => void >x : { a: string; } & { b: string; } >a : string >b : string @@ -342,7 +342,7 @@ if ('extra' in error) { } function narrowsToNever(x: { l: number } | { r: number }) { ->narrowsToNever : (x: { l: number;} | { r: number;}) => number +>narrowsToNever : (x: { l: number; } | { r: number; }) => number >x : { l: number; } | { r: number; } >l : number >r : number @@ -659,7 +659,7 @@ function f3(x: T) { } function f4(x: { a: string }) { ->f4 : (x: { a: string;}) => void +>f4 : (x: { a: string; }) => void >x : { a: string; } >a : string @@ -704,7 +704,7 @@ function f4(x: { a: string }) { } function f5(x: { a: string } | { b: string }) { ->f5 : (x: { a: string;} | { b: string;}) => void +>f5 : (x: { a: string; } | { b: string; }) => void >x : { a: string; } | { b: string; } >a : string >b : string @@ -732,7 +732,7 @@ function f5(x: { a: string } | { b: string }) { } function f6(x: { a: string } | { b: string }) { ->f6 : (x: { a: string;} | { b: string;}) => void +>f6 : (x: { a: string; } | { b: string; }) => void >x : { a: string; } | { b: string; } >a : string >b : string @@ -762,7 +762,7 @@ function f6(x: { a: string } | { b: string }) { // Object and corresponding intersection should narrow the same function f7(x: { a: string, b: number }, y: { a: string } & { b: number }) { ->f7 : (x: { a: string; b: number;}, y: { a: string;} & { b: number;}) => void +>f7 : (x: { a: string; b: number; }, y: { a: string; } & { b: number; }) => void >x : { a: string; b: number; } >a : string >b : number @@ -890,7 +890,7 @@ function f9(x: object) { } function f10(x: { a: unknown }) { ->f10 : (x: { a: unknown;}) => void +>f10 : (x: { a: unknown; }) => void >x : { a: unknown; } >a : unknown @@ -909,7 +909,7 @@ function f10(x: { a: unknown }) { } function f11(x: { a: any }) { ->f11 : (x: { a: any;}) => void +>f11 : (x: { a: any; }) => void >x : { a: any; } >a : any @@ -928,7 +928,7 @@ function f11(x: { a: any }) { } function f12(x: { a: string }) { ->f12 : (x: { a: string;}) => void +>f12 : (x: { a: string; }) => void >x : { a: string; } >a : string @@ -947,7 +947,7 @@ function f12(x: { a: string }) { } function f13(x: { a?: string }) { ->f13 : (x: { a?: string;}) => void +>f13 : (x: { a?: string; }) => void >x : { a?: string; } >a : string @@ -966,7 +966,7 @@ function f13(x: { a?: string }) { } function f14(x: { a: string | undefined }) { ->f14 : (x: { a: string | undefined;}) => void +>f14 : (x: { a: string | undefined; }) => void >x : { a: string | undefined; } >a : string @@ -985,7 +985,7 @@ function f14(x: { a: string | undefined }) { } function f15(x: { a?: string | undefined }) { ->f15 : (x: { a?: string | undefined;}) => void +>f15 : (x: { a?: string | undefined; }) => void >x : { a?: string | undefined; } >a : string diff --git a/tests/baselines/reference/inKeywordTypeguard(strict=true).types b/tests/baselines/reference/inKeywordTypeguard(strict=true).types index 4a2a2094181b7..b65608bc34f48 100644 --- a/tests/baselines/reference/inKeywordTypeguard(strict=true).types +++ b/tests/baselines/reference/inKeywordTypeguard(strict=true).types @@ -301,7 +301,7 @@ class UnreachableCodeDetection { } function positiveIntersectionTest(x: { a: string } & { b: string }) { ->positiveIntersectionTest : (x: { a: string;} & { b: string;}) => void +>positiveIntersectionTest : (x: { a: string; } & { b: string; }) => void >x : { a: string; } & { b: string; } >a : string >b : string @@ -342,7 +342,7 @@ if ('extra' in error) { } function narrowsToNever(x: { l: number } | { r: number }) { ->narrowsToNever : (x: { l: number;} | { r: number;}) => number +>narrowsToNever : (x: { l: number; } | { r: number; }) => number >x : { l: number; } | { r: number; } >l : number >r : number @@ -659,7 +659,7 @@ function f3(x: T) { } function f4(x: { a: string }) { ->f4 : (x: { a: string;}) => void +>f4 : (x: { a: string; }) => void >x : { a: string; } >a : string @@ -704,7 +704,7 @@ function f4(x: { a: string }) { } function f5(x: { a: string } | { b: string }) { ->f5 : (x: { a: string;} | { b: string;}) => void +>f5 : (x: { a: string; } | { b: string; }) => void >x : { a: string; } | { b: string; } >a : string >b : string @@ -732,7 +732,7 @@ function f5(x: { a: string } | { b: string }) { } function f6(x: { a: string } | { b: string }) { ->f6 : (x: { a: string;} | { b: string;}) => void +>f6 : (x: { a: string; } | { b: string; }) => void >x : { a: string; } | { b: string; } >a : string >b : string @@ -762,7 +762,7 @@ function f6(x: { a: string } | { b: string }) { // Object and corresponding intersection should narrow the same function f7(x: { a: string, b: number }, y: { a: string } & { b: number }) { ->f7 : (x: { a: string; b: number;}, y: { a: string;} & { b: number;}) => void +>f7 : (x: { a: string; b: number; }, y: { a: string; } & { b: number; }) => void >x : { a: string; b: number; } >a : string >b : number @@ -890,7 +890,7 @@ function f9(x: object) { } function f10(x: { a: unknown }) { ->f10 : (x: { a: unknown;}) => void +>f10 : (x: { a: unknown; }) => void >x : { a: unknown; } >a : unknown @@ -909,7 +909,7 @@ function f10(x: { a: unknown }) { } function f11(x: { a: any }) { ->f11 : (x: { a: any;}) => void +>f11 : (x: { a: any; }) => void >x : { a: any; } >a : any @@ -928,7 +928,7 @@ function f11(x: { a: any }) { } function f12(x: { a: string }) { ->f12 : (x: { a: string;}) => void +>f12 : (x: { a: string; }) => void >x : { a: string; } >a : string @@ -947,7 +947,7 @@ function f12(x: { a: string }) { } function f13(x: { a?: string }) { ->f13 : (x: { a?: string;}) => void +>f13 : (x: { a?: string; }) => void >x : { a?: string | undefined; } >a : string | undefined @@ -966,7 +966,7 @@ function f13(x: { a?: string }) { } function f14(x: { a: string | undefined }) { ->f14 : (x: { a: string | undefined;}) => void +>f14 : (x: { a: string | undefined; }) => void >x : { a: string | undefined; } >a : string | undefined @@ -985,7 +985,7 @@ function f14(x: { a: string | undefined }) { } function f15(x: { a?: string | undefined }) { ->f15 : (x: { a?: string | undefined;}) => void +>f15 : (x: { a?: string | undefined; }) => void >x : { a?: string | undefined; } >a : string | undefined diff --git a/tests/baselines/reference/incompatibleTypes.types b/tests/baselines/reference/incompatibleTypes.types index d6d115d5d9dd5..1069ddd88d0a3 100644 --- a/tests/baselines/reference/incompatibleTypes.types +++ b/tests/baselines/reference/incompatibleTypes.types @@ -49,7 +49,7 @@ class C3 implements IFoo3 { // incompatible on the property type interface IFoo4 { p1: { a: { a: string; }; b: string; }; ->p1 : { a: { a: string;}; b: string; } +>p1 : { a: { a: string; }; b: string; } >a : { a: string; } >a : string >b : string @@ -59,7 +59,7 @@ class C4 implements IFoo4 { // incompatible on the property type >C4 : C4 public p1: { c: { b: string; }; d: string; }; ->p1 : { c: { b: string;}; d: string; } +>p1 : { c: { b: string; }; d: string; } >c : { b: string; } >b : string >d : string @@ -90,15 +90,15 @@ if1(c1); function of1(n: { a: { a: string; }; b: string; }): number; ->of1 : { (n: { a: { a: string; }; b: string;}): number; (s: { c: { b: string; }; d: string; }): string; } ->n : { a: { a: string;}; b: string; } +>of1 : { (n: { a: { a: string; }; b: string; }): number; (s: { c: { b: string; }; d: string; }): string; } +>n : { a: { a: string; }; b: string; } >a : { a: string; } >a : string >b : string function of1(s: { c: { b: string; }; d: string; }): string; ->of1 : { (n: { a: { a: string; }; b: string; }): number; (s: { c: { b: string; }; d: string;}): string; } ->s : { c: { b: string;}; d: string; } +>of1 : { (n: { a: { a: string; }; b: string; }): number; (s: { c: { b: string; }; d: string; }): string; } +>s : { c: { b: string; }; d: string; } >c : { b: string; } >b : string >d : string @@ -147,7 +147,7 @@ function bar() { } var o1: { a: { a: string; }; b: string; } = { e: 0, f: 0 }; ->o1 : { a: { a: string;}; b: string; } +>o1 : { a: { a: string; }; b: string; } >a : { a: string; } >a : string >b : string diff --git a/tests/baselines/reference/indexSignatureInOtherFile.types b/tests/baselines/reference/indexSignatureInOtherFile.types index ab455c9d99a84..60c37b32c897a 100644 --- a/tests/baselines/reference/indexSignatureInOtherFile.types +++ b/tests/baselines/reference/indexSignatureInOtherFile.types @@ -42,7 +42,7 @@ interface Array1 { * when they will be absent when used in a 'with' statement. */ [Symbol.unscopables](): { ->[Symbol.unscopables] : () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean;} +>[Symbol.unscopables] : () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; } >Symbol.unscopables : unique symbol >Symbol : SymbolConstructor >unscopables : unique symbol diff --git a/tests/baselines/reference/indexSignatureInOtherFile1.types b/tests/baselines/reference/indexSignatureInOtherFile1.types index 07348e7f37f74..1682f2752fb12 100644 --- a/tests/baselines/reference/indexSignatureInOtherFile1.types +++ b/tests/baselines/reference/indexSignatureInOtherFile1.types @@ -33,7 +33,7 @@ interface Array1 { * when they will be absent when used in a 'with' statement. */ [Symbol.unscopables](): { ->[Symbol.unscopables] : () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean;} +>[Symbol.unscopables] : () => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; } >Symbol.unscopables : unique symbol >Symbol : SymbolConstructor >unscopables : unique symbol diff --git a/tests/baselines/reference/indexSignatures1.types b/tests/baselines/reference/indexSignatures1.types index 4f7e248192fb8..ebc1ae184c343 100644 --- a/tests/baselines/reference/indexSignatures1.types +++ b/tests/baselines/reference/indexSignatures1.types @@ -9,7 +9,7 @@ const sym = Symbol(); >Symbol : SymbolConstructor function gg3(x: { [key: string]: string }, y: { [key: symbol]: string }, z: { [sym]: number }) { ->gg3 : (x: { [key: string]: string; }, y: { [key: symbol]: string; }, z: { [sym]: number;}) => void +>gg3 : (x: { [key: string]: string; }, y: { [key: symbol]: string; }, z: { [sym]: number; }) => void >x : { [key: string]: string; } >key : string >y : { [key: symbol]: string; } diff --git a/tests/baselines/reference/indexedAccessNormalization.types b/tests/baselines/reference/indexedAccessNormalization.types index 2f193ea948877..92ab8918290d4 100644 --- a/tests/baselines/reference/indexedAccessNormalization.types +++ b/tests/baselines/reference/indexedAccessNormalization.types @@ -34,7 +34,7 @@ function f1(mymap: MyMap, k: keyof M) { } function f2(mymap: MyMap, k: keyof M, z: { x: number }) { ->f2 : (mymap: MyMap, k: keyof M, z: { x: number;}) => void +>f2 : (mymap: MyMap, k: keyof M, z: { x: number; }) => void >mymap : MyMap >k : keyof M >z : { x: number; } diff --git a/tests/baselines/reference/indirectTypeParameterReferences.types b/tests/baselines/reference/indirectTypeParameterReferences.types index fbe1810e9b8d4..b4766ff8ba1e5 100644 --- a/tests/baselines/reference/indirectTypeParameterReferences.types +++ b/tests/baselines/reference/indirectTypeParameterReferences.types @@ -82,7 +82,7 @@ combined(comb => { // Repro from #19091 declare function f(a: T): { a: typeof a }; ->f : (a: T) => { a: typeof a;} +>f : (a: T) => { a: typeof a; } >a : T >a : T >a : T diff --git a/tests/baselines/reference/inferFromBindingPattern.types b/tests/baselines/reference/inferFromBindingPattern.types index f26a23bdb21e5..561eab8669347 100644 --- a/tests/baselines/reference/inferFromBindingPattern.types +++ b/tests/baselines/reference/inferFromBindingPattern.types @@ -8,7 +8,7 @@ declare function f2(): [T]; >f2 : () => [T] declare function f3(): { x: T }; ->f3 : () => { x: T;} +>f3 : () => { x: T; } >x : T let x1 = f1(); // string diff --git a/tests/baselines/reference/inferStringLiteralUnionForBindingElement.types b/tests/baselines/reference/inferStringLiteralUnionForBindingElement.types index 4e464967370f8..62791e24a6d52 100644 --- a/tests/baselines/reference/inferStringLiteralUnionForBindingElement.types +++ b/tests/baselines/reference/inferStringLiteralUnionForBindingElement.types @@ -2,7 +2,7 @@ === inferStringLiteralUnionForBindingElement.ts === declare function func(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKey: T; }; ->func : (arg: { keys: T[];}) => { readonly keys: T[]; readonly firstKey: T;} +>func : (arg: { keys: T[]; }) => { readonly keys: T[]; readonly firstKey: T; } >arg : { keys: T[]; } >keys : T[] >keys : T[] diff --git a/tests/baselines/reference/inferTypes1.types b/tests/baselines/reference/inferTypes1.types index 3ce2bf2dd5011..e6c6e495bb9a3 100644 --- a/tests/baselines/reference/inferTypes1.types +++ b/tests/baselines/reference/inferTypes1.types @@ -335,7 +335,7 @@ type Jsonified = : "what is this"; type Example = { ->Example : { str: "literalstring"; fn: () => void; date: Date; customClass: MyClass; obj: { prop: "property"; clz: MyClass; nested: { attr: Date; };}; } +>Example : { str: "literalstring"; fn: () => void; date: Date; customClass: MyClass; obj: { prop: "property"; clz: MyClass; nested: { attr: Date; }; }; } str: "literalstring", >str : "literalstring" @@ -350,7 +350,7 @@ type Example = { >customClass : MyClass obj: { ->obj : { prop: "property"; clz: MyClass; nested: { attr: Date;}; } +>obj : { prop: "property"; clz: MyClass; nested: { attr: Date; }; } prop: "property", >prop : "property" diff --git a/tests/baselines/reference/inferingFromAny.types b/tests/baselines/reference/inferingFromAny.types index a022326b86517..25865a3c71bc7 100644 --- a/tests/baselines/reference/inferingFromAny.types +++ b/tests/baselines/reference/inferingFromAny.types @@ -20,7 +20,7 @@ declare function f3(t: [T, U]): [T, U]; >t : [T, U] declare function f4(x: { bar: T; baz: T }): T; ->f4 : (x: { bar: T; baz: T;}) => T +>f4 : (x: { bar: T; baz: T; }) => T >x : { bar: T; baz: T; } >bar : T >baz : T @@ -67,7 +67,7 @@ declare function f13(x: T & U): [T, U]; >x : T & U declare function f14(x: { a: T | U, b: U & T }): [T, U]; ->f14 : (x: { a: T | U; b: U & T;}) => [T, U] +>f14 : (x: { a: T | U; b: U & T; }) => [T, U] >x : { a: T | U; b: U & T; } >a : T | U >b : U & T diff --git a/tests/baselines/reference/inferrenceInfiniteLoopWithSubtyping.types b/tests/baselines/reference/inferrenceInfiniteLoopWithSubtyping.types index 6a8632ec2a38d..641d13a295c3e 100644 --- a/tests/baselines/reference/inferrenceInfiniteLoopWithSubtyping.types +++ b/tests/baselines/reference/inferrenceInfiniteLoopWithSubtyping.types @@ -29,7 +29,7 @@ export class ObjectTypeComposer { >fields : Readonly<{ [key: string]: Readonly; }> public addResolver(opts: { type?: Thunk }): this; ->addResolver : (opts: { type?: Thunk;}) => this +>addResolver : (opts: { type?: Thunk; }) => this >opts : { type?: Thunk; } >type : Thunk } diff --git a/tests/baselines/reference/infinitelyGenerativeInheritance1.types b/tests/baselines/reference/infinitelyGenerativeInheritance1.types index d5648736876e9..6edb4c4dd71ae 100644 --- a/tests/baselines/reference/infinitelyGenerativeInheritance1.types +++ b/tests/baselines/reference/infinitelyGenerativeInheritance1.types @@ -6,7 +6,7 @@ interface Stack { >pop : () => T zip(a: Stack): Stack<{ x: T; y: S }> ->zip : (a: Stack) => Stack<{ x: T; y: S;}> +>zip : (a: Stack) => Stack<{ x: T; y: S; }> >a : Stack >x : T >y : S @@ -14,7 +14,7 @@ interface Stack { interface MyStack extends Stack { zip(a: Stack): Stack<{ x: T; y: S }> ->zip : (a: Stack) => Stack<{ x: T; y: S;}> +>zip : (a: Stack) => Stack<{ x: T; y: S; }> >a : Stack >x : T >y : S diff --git a/tests/baselines/reference/initializedParameterBeforeNonoptionalNotOptional.types b/tests/baselines/reference/initializedParameterBeforeNonoptionalNotOptional.types index 9ff3182564335..c799bb6099262 100644 --- a/tests/baselines/reference/initializedParameterBeforeNonoptionalNotOptional.types +++ b/tests/baselines/reference/initializedParameterBeforeNonoptionalNotOptional.types @@ -2,7 +2,7 @@ === index.d.ts === export declare function foo({a}?: { ->foo : ({ a }?: { a?: string;}) => void +>foo : ({ a }?: { a?: string; }) => void >a : string | undefined a?: string; @@ -10,7 +10,7 @@ export declare function foo({a}?: { }): void; export declare function foo2({a}: { ->foo2 : ({ a }: { a?: string | undefined;} | undefined, b: string) => void +>foo2 : ({ a }: { a?: string | undefined; } | undefined, b: string) => void >a : string | undefined a?: string | undefined; @@ -20,7 +20,7 @@ export declare function foo2({a}: { >b : string export declare function foo3({a, b: {c}}: { ->foo3 : ({ a, b: { c } }: { a?: string | undefined; b?: { c?: string | undefined; } | undefined;} | undefined, b: string) => void +>foo3 : ({ a, b: { c } }: { a?: string | undefined; b?: { c?: string | undefined; } | undefined; } | undefined, b: string) => void >a : string | undefined >b : any >c : string | undefined diff --git a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.types b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.types index ab6f30848c0fd..45ab5b84efd02 100644 --- a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.types +++ b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.types @@ -76,8 +76,8 @@ import { predom } from "./renderer2" >predom : () => predom.JSX.Element export const MySFC = (props: {x: number, y: number, children?: predom.JSX.Element[]}) =>

{props.x} + {props.y} = {props.x + props.y}{...this.props.children}

; ->MySFC : (props: { x: number; y: number; children?: predom.JSX.Element[];}) => predom.JSX.Element ->(props: {x: number, y: number, children?: predom.JSX.Element[]}) =>

{props.x} + {props.y} = {props.x + props.y}{...this.props.children}

: (props: { x: number; y: number; children?: predom.JSX.Element[];}) => predom.JSX.Element +>MySFC : (props: { x: number; y: number; children?: predom.JSX.Element[]; }) => predom.JSX.Element +>(props: {x: number, y: number, children?: predom.JSX.Element[]}) =>

{props.x} + {props.y} = {props.x + props.y}{...this.props.children}

: (props: { x: number; y: number; children?: predom.JSX.Element[]; }) => predom.JSX.Element >props : { x: number; y: number; children?: predom.JSX.Element[]; } >x : number >y : number @@ -214,8 +214,8 @@ elem = ; // Expect assignability error here >h : any const DOMSFC = (props: {x: number, y: number, children?: dom.JSX.Element[]}) =>

{props.x} + {props.y} = {props.x + props.y}{props.children}

; ->DOMSFC : (props: { x: number; y: number; children?: dom.JSX.Element[];}) => dom.JSX.Element ->(props: {x: number, y: number, children?: dom.JSX.Element[]}) =>

{props.x} + {props.y} = {props.x + props.y}{props.children}

: (props: { x: number; y: number; children?: dom.JSX.Element[];}) => dom.JSX.Element +>DOMSFC : (props: { x: number; y: number; children?: dom.JSX.Element[]; }) => dom.JSX.Element +>(props: {x: number, y: number, children?: dom.JSX.Element[]}) =>

{props.x} + {props.y} = {props.x + props.y}{props.children}

: (props: { x: number; y: number; children?: dom.JSX.Element[]; }) => dom.JSX.Element >props : { x: number; y: number; children?: dom.JSX.Element[]; } >x : number >y : number diff --git a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.es2015.types b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.es2015.types index 480c5e6f1f182..0a4a7eb374d33 100644 --- a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.es2015.types +++ b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.es2015.types @@ -170,8 +170,8 @@ var rc1 = '' instanceof {}; // @@hasInstance restricts LHS var o4: {[Symbol.hasInstance](value: { x: number }): boolean;}; ->o4 : { [Symbol.hasInstance](value: { x: number;}): boolean; } ->[Symbol.hasInstance] : (value: { x: number;}) => boolean +>o4 : { [Symbol.hasInstance](value: { x: number; }): boolean; } +>[Symbol.hasInstance] : (value: { x: number; }) => boolean >Symbol.hasInstance : unique symbol >Symbol : SymbolConstructor >hasInstance : unique symbol diff --git a/tests/baselines/reference/instantiationExpressions.types b/tests/baselines/reference/instantiationExpressions.types index e1a69947e0378..04096dabf264d 100644 --- a/tests/baselines/reference/instantiationExpressions.types +++ b/tests/baselines/reference/instantiationExpressions.types @@ -151,7 +151,7 @@ function f12(f: { (a: T): T, x: string }) { } function f13(f: { x: string, y: string }) { ->f13 : (f: { x: string; y: string;}) => void +>f13 : (f: { x: string; y: string; }) => void >f : { x: string; y: string; } >x : string >y : string @@ -253,7 +253,7 @@ function f22(f: ((a: T) => T) & { x: string }) { } function f23(f: { x: string } & { y: string }) { ->f23 : (f: { x: string;} & { y: string;}) => void +>f23 : (f: { x: string; } & { y: string; }) => void >f : { x: string; } & { y: string; } >x : string >y : string @@ -355,7 +355,7 @@ function f32(f: ((a: T) => T) | { x: string }) { } function f33(f: { x: string } | { y: string }) { ->f33 : (f: { x: string;} | { y: string;}) => void +>f33 : (f: { x: string; } | { y: string; }) => void >f : { x: string; } | { y: string; } >x : string >y : string diff --git a/tests/baselines/reference/interfaceExtendsObjectIntersection.types b/tests/baselines/reference/interfaceExtendsObjectIntersection.types index c9aafc87a2100..4a22f4495681a 100644 --- a/tests/baselines/reference/interfaceExtendsObjectIntersection.types +++ b/tests/baselines/reference/interfaceExtendsObjectIntersection.types @@ -13,7 +13,7 @@ type T3 = () => void; >T3 : () => void type T4 = new () => { a: number }; ->T4 : new () => { a: number;} +>T4 : new () => { a: number; } >a : number type T5 = number[]; diff --git a/tests/baselines/reference/interfaceImplementation7.types b/tests/baselines/reference/interfaceImplementation7.types index b066ef8420272..c2ed1ac87c81a 100644 --- a/tests/baselines/reference/interfaceImplementation7.types +++ b/tests/baselines/reference/interfaceImplementation7.types @@ -2,16 +2,16 @@ === interfaceImplementation7.ts === interface i1{ name(): { s: string; }; } ->name : () => { s: string;} +>name : () => { s: string; } >s : string interface i2{ name(): { n: number; }; } ->name : () => { n: number;} +>name : () => { n: number; } >n : number interface i3 extends i1, i2 { } interface i4 extends i1, i2 { name(): { s: string; n: number; }; } ->name : () => { s: string; n: number;} +>name : () => { s: string; n: number; } >s : string >n : number diff --git a/tests/baselines/reference/interfacePropertiesWithSameName1.types b/tests/baselines/reference/interfacePropertiesWithSameName1.types index ddd240c27afc6..7fffcce7a4d16 100644 --- a/tests/baselines/reference/interfacePropertiesWithSameName1.types +++ b/tests/baselines/reference/interfacePropertiesWithSameName1.types @@ -6,7 +6,7 @@ interface Mover { >move : () => void getStatus(): { speed: number; }; ->getStatus : () => { speed: number;} +>getStatus : () => { speed: number; } >speed : number } interface Shaker { @@ -14,13 +14,13 @@ interface Shaker { >shake : () => void getStatus(): { frequency: number; }; ->getStatus : () => { frequency: number;} +>getStatus : () => { frequency: number; } >frequency : number } interface MoverShaker extends Mover, Shaker { getStatus(): { speed: number; frequency: number; }; ->getStatus : () => { speed: number; frequency: number;} +>getStatus : () => { speed: number; frequency: number; } >speed : number >frequency : number } diff --git a/tests/baselines/reference/interfacePropertiesWithSameName2.types b/tests/baselines/reference/interfacePropertiesWithSameName2.types index 5eaffb4b5a625..aed46bf9b66fc 100644 --- a/tests/baselines/reference/interfacePropertiesWithSameName2.types +++ b/tests/baselines/reference/interfacePropertiesWithSameName2.types @@ -6,7 +6,7 @@ interface Mover { >move : () => void getStatus(): { speed: number; }; ->getStatus : () => { speed: number;} +>getStatus : () => { speed: number; } >speed : number } interface Shaker { @@ -14,7 +14,7 @@ interface Shaker { >shake : () => void getStatus(): { frequency: number; }; ->getStatus : () => { frequency: number;} +>getStatus : () => { frequency: number; } >frequency : number } @@ -33,7 +33,7 @@ declare module MoversAndShakers { >move : () => void getStatus(): { speed: number; }; ->getStatus : () => { speed: number;} +>getStatus : () => { speed: number; } >speed : number } export interface Shaker { @@ -41,7 +41,7 @@ declare module MoversAndShakers { >shake : () => void getStatus(): { frequency: number; }; ->getStatus : () => { frequency: number;} +>getStatus : () => { frequency: number; } >frequency : number } } @@ -55,7 +55,7 @@ interface MoverShaker3 extends MoversAndShakers.Mover, MoversAndShakers.Shaker { >MoversAndShakers : typeof MoversAndShakers getStatus(): { speed: number; frequency: number; }; // ok because this getStatus overrides the conflicting ones above ->getStatus : () => { speed: number; frequency: number;} +>getStatus : () => { speed: number; frequency: number; } >speed : number >frequency : number } diff --git a/tests/baselines/reference/intersectionOfTypeVariableHasApparentSignatures.types b/tests/baselines/reference/intersectionOfTypeVariableHasApparentSignatures.types index 10dfc1475f8be..eac90849028e0 100644 --- a/tests/baselines/reference/intersectionOfTypeVariableHasApparentSignatures.types +++ b/tests/baselines/reference/intersectionOfTypeVariableHasApparentSignatures.types @@ -9,7 +9,7 @@ interface Component

{ interface Props { children?: (items: {x: number}) => void ->children : ((items: { x: number;}) => void) | undefined +>children : ((items: { x: number; }) => void) | undefined >items : { x: number; } >x : number } diff --git a/tests/baselines/reference/intersectionPropertyCheck.types b/tests/baselines/reference/intersectionPropertyCheck.types index a1a5a810641ea..11141b0a6e6d8 100644 --- a/tests/baselines/reference/intersectionPropertyCheck.types +++ b/tests/baselines/reference/intersectionPropertyCheck.types @@ -2,7 +2,7 @@ === intersectionPropertyCheck.ts === let obj: { a: { x: string } } & { c: number } = { a: { x: 'hello', y: 2 }, c: 5 }; // Nested excess property ->obj : { a: { x: string;}; } & { c: number; } +>obj : { a: { x: string; }; } & { c: number; } >a : { x: string; } >x : string >c : number @@ -17,7 +17,7 @@ let obj: { a: { x: string } } & { c: number } = { a: { x: 'hello', y: 2 }, c: 5 >5 : 5 declare let wrong: { a: { y: string } }; ->wrong : { a: { y: string;}; } +>wrong : { a: { y: string; }; } >a : { y: string; } >y : string @@ -29,7 +29,7 @@ let weak: { a?: { x?: number } } & { c?: string } = wrong; // Nested weak objec >wrong : { a: { y: string; }; } function foo(x: { a?: string }, y: T & { a: boolean }) { ->foo : (x: { a?: string;}, y: T & { a: boolean;}) => void +>foo : (x: { a?: string; }, y: T & { a: boolean; }) => void >x : { a?: string | undefined; } >a : string | undefined >y : T & { a: boolean; } diff --git a/tests/baselines/reference/intersectionReduction.types b/tests/baselines/reference/intersectionReduction.types index 826520f232e1f..bd7ca085be0e0 100644 --- a/tests/baselines/reference/intersectionReduction.types +++ b/tests/baselines/reference/intersectionReduction.types @@ -183,7 +183,7 @@ type E = { kind: 'e', foo: unknown }; >foo : unknown declare function f10(x: { foo: T }): T; ->f10 : (x: { foo: T;}) => T +>f10 : (x: { foo: T; }) => T >x : { foo: T; } >foo : T @@ -302,15 +302,15 @@ const f2 = (t: Container<"a"> | (Container<"b"> & Container<"c">)): Container<"a >t : Container<"a"> const f3 = (t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t; ->f3 : (t: Container<"a"> | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => Container<"a"> ->(t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t : (t: Container<"a"> | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => Container<"a"> +>f3 : (t: Container<"a"> | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => Container<"a"> +>(t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t : (t: Container<"a"> | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => Container<"a"> >t : Container<"a"> >dataB : boolean >t : Container<"a"> const f4 = (t: number | (Container<"b"> & { dataB: boolean } & Container<"a">)): number => t; ->f4 : (t: number | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => number ->(t: number | (Container<"b"> & { dataB: boolean } & Container<"a">)): number => t : (t: number | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => number +>f4 : (t: number | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => number +>(t: number | (Container<"b"> & { dataB: boolean } & Container<"a">)): number => t : (t: number | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => number >t : number >dataB : boolean >t : number diff --git a/tests/baselines/reference/intersectionReductionStrict.types b/tests/baselines/reference/intersectionReductionStrict.types index 08f6c45beed79..63a313a7357d9 100644 --- a/tests/baselines/reference/intersectionReductionStrict.types +++ b/tests/baselines/reference/intersectionReductionStrict.types @@ -269,15 +269,15 @@ const f2 = (t: Container<"a"> | (Container<"b"> & Container<"c">)): Container<"a >t : Container<"a"> const f3 = (t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t; ->f3 : (t: Container<"a"> | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => Container<"a"> ->(t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t : (t: Container<"a"> | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => Container<"a"> +>f3 : (t: Container<"a"> | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => Container<"a"> +>(t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t : (t: Container<"a"> | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => Container<"a"> >t : Container<"a"> >dataB : boolean >t : Container<"a"> const f4 = (t: number | (Container<"b"> & { dataB: boolean } & Container<"a">)): number => t; ->f4 : (t: number | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => number ->(t: number | (Container<"b"> & { dataB: boolean } & Container<"a">)): number => t : (t: number | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => number +>f4 : (t: number | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => number +>(t: number | (Container<"b"> & { dataB: boolean } & Container<"a">)): number => t : (t: number | (Container<"b"> & { dataB: boolean; } & Container<"a">)) => number >t : number >dataB : boolean >t : number diff --git a/tests/baselines/reference/intersectionTypeInference1.types b/tests/baselines/reference/intersectionTypeInference1.types index 216e5c238e689..9e7218e3f361e 100644 --- a/tests/baselines/reference/intersectionTypeInference1.types +++ b/tests/baselines/reference/intersectionTypeInference1.types @@ -8,8 +8,8 @@ function alert(s: string) {} >s : string const parameterFn = (props:{store:string}) => alert(props.store) ->parameterFn : (props: { store: string;}) => void ->(props:{store:string}) => alert(props.store) : (props: { store: string;}) => void +>parameterFn : (props: { store: string; }) => void +>(props:{store:string}) => alert(props.store) : (props: { store: string; }) => void >props : { store: string; } >store : string >alert(props.store) : void @@ -21,7 +21,7 @@ const parameterFn = (props:{store:string}) => alert(props.store) const brokenFunction = (f: (p: {dispatch: number} & OwnProps) => void) => (o: OwnProps) => o >brokenFunction : (f: (p: { dispatch: number; } & OwnProps) => void) => (o: OwnProps) => OwnProps >(f: (p: {dispatch: number} & OwnProps) => void) => (o: OwnProps) => o : (f: (p: { dispatch: number; } & OwnProps) => void) => (o: OwnProps) => OwnProps ->f : (p: { dispatch: number;} & OwnProps) => void +>f : (p: { dispatch: number; } & OwnProps) => void >p : { dispatch: number; } & OwnProps >dispatch : number >(o: OwnProps) => o : (o: OwnProps) => OwnProps diff --git a/tests/baselines/reference/intersectionTypeInference2.types b/tests/baselines/reference/intersectionTypeInference2.types index 294910513bf50..13c14da655254 100644 --- a/tests/baselines/reference/intersectionTypeInference2.types +++ b/tests/baselines/reference/intersectionTypeInference2.types @@ -2,7 +2,7 @@ === intersectionTypeInference2.ts === declare function f(x: { prop: T }): T; ->f : (x: { prop: T;}) => T +>f : (x: { prop: T; }) => T >x : { prop: T; } >prop : T diff --git a/tests/baselines/reference/intersectionTypeMembers.types b/tests/baselines/reference/intersectionTypeMembers.types index 285ef5664fb6b..966f7ac1ef18e 100644 --- a/tests/baselines/reference/intersectionTypeMembers.types +++ b/tests/baselines/reference/intersectionTypeMembers.types @@ -101,7 +101,7 @@ var n = f(42); interface D { nested: { doublyNested: { d: string; }, different: { e: number } }; ->nested : { doublyNested: { d: string;}; different: { e: number;}; } +>nested : { doublyNested: { d: string; }; different: { e: number; }; } >doublyNested : { d: string; } >d : string >different : { e: number; } @@ -109,7 +109,7 @@ interface D { } interface E { nested: { doublyNested: { f: string; }, other: {g: number } }; ->nested : { doublyNested: { f: string;}; other: { g: number;}; } +>nested : { doublyNested: { f: string; }; other: { g: number; }; } >doublyNested : { f: string; } >f : string >other : { g: number; } @@ -153,14 +153,14 @@ const de: D & E = { // Additional test case with >2 doubly nested members so fix for #31441 is tested w/ excess props interface F { nested: { doublyNested: { g: string; } } ->nested : { doublyNested: { g: string;}; } +>nested : { doublyNested: { g: string; }; } >doublyNested : { g: string; } >g : string } interface G { nested: { doublyNested: { h: string; } } ->nested : { doublyNested: { h: string;}; } +>nested : { doublyNested: { h: string; }; } >doublyNested : { h: string; } >h : string } diff --git a/tests/baselines/reference/intersectionType_useDefineForClassFields.types b/tests/baselines/reference/intersectionType_useDefineForClassFields.types index b1436cf60dd42..f0180a7961641 100644 --- a/tests/baselines/reference/intersectionType_useDefineForClassFields.types +++ b/tests/baselines/reference/intersectionType_useDefineForClassFields.types @@ -8,7 +8,7 @@ type Foo = { } function bar(_p: T): { new(): Foo } { ->bar : (_p: T) => { new (): Foo;} +>bar : (_p: T) => { new (): Foo; } >_p : T return null as any; diff --git a/tests/baselines/reference/intraExpressionInferences.types b/tests/baselines/reference/intraExpressionInferences.types index e38c271c8614a..e2becbc3251fb 100644 --- a/tests/baselines/reference/intraExpressionInferences.types +++ b/tests/baselines/reference/intraExpressionInferences.types @@ -344,7 +344,7 @@ type MappingComponent = { >MappingComponent : MappingComponent setup(): { inputs: I; outputs: O }; ->setup : () => { inputs: I; outputs: O;} +>setup : () => { inputs: I; outputs: O; } >inputs : I >outputs : O diff --git a/tests/baselines/reference/jsDeclarationsExportDefinePropertyEmit.types b/tests/baselines/reference/jsDeclarationsExportDefinePropertyEmit.types index 063701cfe2aa2..ac9ed71340b30 100644 --- a/tests/baselines/reference/jsDeclarationsExportDefinePropertyEmit.types +++ b/tests/baselines/reference/jsDeclarationsExportDefinePropertyEmit.types @@ -142,7 +142,7 @@ Object.defineProperty(module.exports.f, "self", { value: module.exports.f }); * @param {{y: typeof module.exports.b}} b */ function g(a, b) { ->g : (a: { x: string;}, b: { y: () => void; }) => void +>g : (a: { x: string; }, b: { y: () => void; }) => void >a : { x: string; } >b : { y: () => void; } @@ -175,7 +175,7 @@ Object.defineProperty(module.exports, "g", { value: g }); * @param {{y: typeof module.exports.b}} b */ function hh(a, b) { ->hh : (a: { x: string;}, b: { y: () => void; }) => void +>hh : (a: { x: string; }, b: { y: () => void; }) => void >a : { x: string; } >b : { y: () => void; } diff --git a/tests/baselines/reference/jsDeclarationsFunctions.types b/tests/baselines/reference/jsDeclarationsFunctions.types index 2dd35c6be4d28..fcdb16f1efbf4 100644 --- a/tests/baselines/reference/jsDeclarationsFunctions.types +++ b/tests/baselines/reference/jsDeclarationsFunctions.types @@ -70,7 +70,7 @@ f.self = f; * @param {{y: typeof b}} b */ function g(a, b) { ->g : (a: { x: string;}, b: { y: typeof import("index").b; }) => void +>g : (a: { x: string; }, b: { y: typeof import("index").b; }) => void >a : { x: string; } >b : { y: typeof import("index").b; } @@ -93,7 +93,7 @@ export { g }; * @param {{y: typeof b}} b */ function hh(a, b) { ->hh : (a: { x: string;}, b: { y: typeof import("index").b; }) => void +>hh : (a: { x: string; }, b: { y: typeof import("index").b; }) => void >a : { x: string; } >b : { y: typeof import("index").b; } diff --git a/tests/baselines/reference/jsDeclarationsFunctionsCjs.types b/tests/baselines/reference/jsDeclarationsFunctionsCjs.types index 7b43796b8ec88..54ec640502e47 100644 --- a/tests/baselines/reference/jsDeclarationsFunctionsCjs.types +++ b/tests/baselines/reference/jsDeclarationsFunctionsCjs.types @@ -128,7 +128,7 @@ module.exports.f.self = module.exports.f; * @param {{y: typeof module.exports.b}} b */ function g(a, b) { ->g : (a: { x: string;}, b: { y: { (): void; cat: string; }; }) => void +>g : (a: { x: string; }, b: { y: { (): void; cat: string; }; }) => void >a : { x: string; } >b : { y: { (): void; cat: string; }; } @@ -157,7 +157,7 @@ module.exports.g = g; * @param {{y: typeof module.exports.b}} b */ function hh(a, b) { ->hh : (a: { x: string;}, b: { y: { (): void; cat: string; }; }) => void +>hh : (a: { x: string; }, b: { y: { (): void; cat: string; }; }) => void >a : { x: string; } >b : { y: { (): void; cat: string; }; } diff --git a/tests/baselines/reference/jsDeclarationsReactComponents.types b/tests/baselines/reference/jsDeclarationsReactComponents.types index 449d550716e4e..f737b42a10a52 100644 --- a/tests/baselines/reference/jsDeclarationsReactComponents.types +++ b/tests/baselines/reference/jsDeclarationsReactComponents.types @@ -145,8 +145,8 @@ import React from "react"; >React : typeof React const TabbedShowLayout = (/** @type {{className: string}}*/prop) => { ->TabbedShowLayout : { (prop: { className: string;}): JSX.Element; defaultProps: { tabs: string; }; } ->(/** @type {{className: string}}*/prop) => { return (

ok
);} : { (prop: { className: string;}): JSX.Element; defaultProps: { tabs: string; }; } +>TabbedShowLayout : { (prop: { className: string; }): JSX.Element; defaultProps: { tabs: string; }; } +>(/** @type {{className: string}}*/prop) => { return (
ok
);} : { (prop: { className: string; }): JSX.Element; defaultProps: { tabs: string; }; } >prop : { className: string; } return ( diff --git a/tests/baselines/reference/jsdocFunctionType.types b/tests/baselines/reference/jsdocFunctionType.types index 4b70876ebe202..6be16f445ca08 100644 --- a/tests/baselines/reference/jsdocFunctionType.types +++ b/tests/baselines/reference/jsdocFunctionType.types @@ -30,7 +30,7 @@ var x = id1(function (n) { return this.length + n }); * @return {function(new: { length: number }, number): number} */ function id2(c) { ->id2 : (c: new (arg1: number) => { length: number;}) => new (arg1: number) => { length: number;} +>id2 : (c: new (arg1: number) => { length: number; }) => new (arg1: number) => { length: number; } >c : new (arg1: number) => { length: number; } return c diff --git a/tests/baselines/reference/jsdocParamTag2.types b/tests/baselines/reference/jsdocParamTag2.types index 685620c2531c5..77e84f4ff90d4 100644 --- a/tests/baselines/reference/jsdocParamTag2.types +++ b/tests/baselines/reference/jsdocParamTag2.types @@ -7,7 +7,7 @@ * @param {string} x */ function good1({a, b}, x) {} ->good1 : ({ a, b }: { a: string; b: string;}, x: string) => void +>good1 : ({ a, b }: { a: string; b: string; }, x: string) => void >a : string >b : string >x : string @@ -17,7 +17,7 @@ function good1({a, b}, x) {} * @param {{c: number, d: number}} OBJECTION */ function good2({a, b}, {c, d}) {} ->good2 : ({ a, b }: { a: string; b: string;}, { c, d }: { c: number; d: number;}) => void +>good2 : ({ a, b }: { a: string; b: string; }, { c, d }: { c: number; d: number; }) => void >a : string >b : string >c : number @@ -29,7 +29,7 @@ function good2({a, b}, {c, d}) {} * @param {string} y */ function good3(x, {a, b}, y) {} ->good3 : (x: number, { a, b }: { a: string; b: string;}, y: string) => void +>good3 : (x: number, { a, b }: { a: string; b: string; }, y: string) => void >x : number >a : string >b : string @@ -39,7 +39,7 @@ function good3(x, {a, b}, y) {} * @param {{a: string, b: string}} obj */ function good4({a, b}) {} ->good4 : ({ a, b }: { a: string; b: string;}) => void +>good4 : ({ a, b }: { a: string; b: string; }) => void >a : string >b : string @@ -99,7 +99,7 @@ function good8({a, b}) {} * @param {{ a: string }} argument */ function good9({ a }) { ->good9 : ({ a }: { a: string;}, ...args: any[]) => void +>good9 : ({ a }: { a: string; }, ...args: any[]) => void >a : string console.log(arguments, a); @@ -128,7 +128,7 @@ function bad1(x, {a, b}) {} * @param {{a: string, b: string}} obj */ function bad2(x, {a, b}) {} ->bad2 : (x: any, { a, b }: { a: string; b: string;}) => void +>bad2 : (x: any, { a, b }: { a: string; b: string; }) => void >x : any >a : string >b : string diff --git a/tests/baselines/reference/jsxCallbackWithDestructuring.types b/tests/baselines/reference/jsxCallbackWithDestructuring.types index a0eda75eb6b6d..a6ea643279cf3 100644 --- a/tests/baselines/reference/jsxCallbackWithDestructuring.types +++ b/tests/baselines/reference/jsxCallbackWithDestructuring.types @@ -40,7 +40,7 @@ declare global { export interface RouteProps { children?: (props: { x: number }) => any; ->children : ((props: { x: number;}) => any) | undefined +>children : ((props: { x: number; }) => any) | undefined >props : { x: number; } >x : number } diff --git a/tests/baselines/reference/jsxComplexSignatureHasApplicabilityError.types b/tests/baselines/reference/jsxComplexSignatureHasApplicabilityError.types index 0b8476c8ee204..444aca22a7432 100644 --- a/tests/baselines/reference/jsxComplexSignatureHasApplicabilityError.types +++ b/tests/baselines/reference/jsxComplexSignatureHasApplicabilityError.types @@ -216,7 +216,7 @@ export type IsOptionUniqueHandler = (arg: { option: Optio >valueKey : string export type IsValidNewOptionHandler = (arg: { label: string }) => boolean; ->IsValidNewOptionHandler : (arg: { label: string;}) => boolean +>IsValidNewOptionHandler : (arg: { label: string; }) => boolean >arg : { label: string; } >label : string @@ -232,7 +232,7 @@ export type PromptTextCreatorHandler = (filterText: string) => string; >filterText : string export type ShouldKeyDownEventCreateNewOptionHandler = (arg: { keyCode: number }) => boolean; ->ShouldKeyDownEventCreateNewOptionHandler : (arg: { keyCode: number;}) => boolean +>ShouldKeyDownEventCreateNewOptionHandler : (arg: { keyCode: number; }) => boolean >arg : { keyCode: number; } >keyCode : number diff --git a/tests/baselines/reference/jsxEmitWithAttributes.types b/tests/baselines/reference/jsxEmitWithAttributes.types index 450fde058faab..8030a267d11b6 100644 --- a/tests/baselines/reference/jsxEmitWithAttributes.types +++ b/tests/baselines/reference/jsxEmitWithAttributes.types @@ -87,7 +87,7 @@ import { Element} from './Element'; >Element : typeof Element let c: { ->c : { a?: { b: string;}; } +>c : { a?: { b: string; }; } a?: { >a : { b: string; } diff --git a/tests/baselines/reference/jsxExcessPropsAndAssignability.types b/tests/baselines/reference/jsxExcessPropsAndAssignability.types index 1469e837a8ed6..f1e19342f97ee 100644 --- a/tests/baselines/reference/jsxExcessPropsAndAssignability.types +++ b/tests/baselines/reference/jsxExcessPropsAndAssignability.types @@ -7,8 +7,8 @@ import * as React from 'react'; >React : typeof React const myHoc = ( ->myHoc : (ComposedComponent: React.ComponentClass) => void ->( ComposedComponent: React.ComponentClass,) => { type WrapperComponentProps = ComposedComponentProps & { myProp: string }; const WrapperComponent: React.ComponentClass = null as any; const props: ComposedComponentProps = null as any; ; ;} : (ComposedComponent: React.ComponentClass) => void +>myHoc : (ComposedComponent: React.ComponentClass) => void +>( ComposedComponent: React.ComponentClass,) => { type WrapperComponentProps = ComposedComponentProps & { myProp: string }; const WrapperComponent: React.ComponentClass = null as any; const props: ComposedComponentProps = null as any; ; ;} : (ComposedComponent: React.ComponentClass) => void ComposedComponent: React.ComponentClass, >ComposedComponent : React.ComponentClass diff --git a/tests/baselines/reference/jsxFactoryAndReactNamespace.types b/tests/baselines/reference/jsxFactoryAndReactNamespace.types index a0b63e434b97a..7822e187a4b51 100644 --- a/tests/baselines/reference/jsxFactoryAndReactNamespace.types +++ b/tests/baselines/reference/jsxFactoryAndReactNamespace.types @@ -87,7 +87,7 @@ import { Element} from './Element'; >Element : typeof Element let c: { ->c : { a?: { b: string;}; } +>c : { a?: { b: string; }; } a?: { >a : { b: string; } diff --git a/tests/baselines/reference/jsxFactoryIdentifier.types b/tests/baselines/reference/jsxFactoryIdentifier.types index 5b4932e4bb1de..7e5bd265fd5d5 100644 --- a/tests/baselines/reference/jsxFactoryIdentifier.types +++ b/tests/baselines/reference/jsxFactoryIdentifier.types @@ -93,7 +93,7 @@ let createElement = Element.createElement; >createElement : (args: any[]) => {} let c: { ->c : { a?: { b: string;}; } +>c : { a?: { b: string; }; } a?: { >a : { b: string; } diff --git a/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName.types b/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName.types index 014b5b635c37a..ad0223993611d 100644 --- a/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName.types +++ b/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName.types @@ -87,7 +87,7 @@ import { Element} from './Element'; >Element : typeof Element let c: { ->c : { a?: { b: string;}; } +>c : { a?: { b: string; }; } a?: { >a : { b: string; } diff --git a/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName2.types b/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName2.types index 0c4ed0de3d810..9115d791a83a0 100644 --- a/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName2.types +++ b/tests/baselines/reference/jsxFactoryNotIdentifierOrQualifiedName2.types @@ -87,7 +87,7 @@ import { Element} from './Element'; >Element : typeof Element let c: { ->c : { a?: { b: string;}; } +>c : { a?: { b: string; }; } a?: { >a : { b: string; } diff --git a/tests/baselines/reference/jsxFactoryQualifiedName.types b/tests/baselines/reference/jsxFactoryQualifiedName.types index 92013df3e18ba..a5d928610c266 100644 --- a/tests/baselines/reference/jsxFactoryQualifiedName.types +++ b/tests/baselines/reference/jsxFactoryQualifiedName.types @@ -87,7 +87,7 @@ import { Element} from './Element'; >Element : typeof Element let c: { ->c : { a?: { b: string;}; } +>c : { a?: { b: string; }; } a?: { >a : { b: string; } diff --git a/tests/baselines/reference/jsxIntrinsicElementsCompatability.types b/tests/baselines/reference/jsxIntrinsicElementsCompatability.types index 081cf511ba704..2a865a53fecb1 100644 --- a/tests/baselines/reference/jsxIntrinsicElementsCompatability.types +++ b/tests/baselines/reference/jsxIntrinsicElementsCompatability.types @@ -6,7 +6,7 @@ import * as React from "react"; >React : typeof React function SomeComponent(props: { element?: T } & JSX.IntrinsicElements[T]): JSX.Element { ->SomeComponent : (props: { element?: T;} & JSX.IntrinsicElements[T]) => JSX.Element +>SomeComponent : (props: { element?: T; } & JSX.IntrinsicElements[T]) => JSX.Element >props : { element?: T | undefined; } & JSX.IntrinsicElements[T] >element : T | undefined >JSX : any diff --git a/tests/baselines/reference/jsxLibraryManagedAttributesUnusedGeneric.types b/tests/baselines/reference/jsxLibraryManagedAttributesUnusedGeneric.types index 3f7d366108991..380d9ff12dcb2 100644 --- a/tests/baselines/reference/jsxLibraryManagedAttributesUnusedGeneric.types +++ b/tests/baselines/reference/jsxLibraryManagedAttributesUnusedGeneric.types @@ -20,7 +20,7 @@ namespace jsx { export interface IntrinsicAttributes {} export interface IntrinsicClassAttributes {} export type IntrinsicElements = { ->IntrinsicElements : { div: { className: string;}; } +>IntrinsicElements : { div: { className: string; }; } div: { className: string } >div : { className: string; } @@ -41,7 +41,7 @@ namespace jsx { } declare const Comp: (p: { className?: string }) => null ->Comp : (p: { className?: string;}) => null +>Comp : (p: { className?: string; }) => null >p : { className?: string; } >className : string diff --git a/tests/baselines/reference/jsxNamespaceGlobalReexport.types b/tests/baselines/reference/jsxNamespaceGlobalReexport.types index 2cfb44fe74676..8c66ca8cfc6f7 100644 --- a/tests/baselines/reference/jsxNamespaceGlobalReexport.types +++ b/tests/baselines/reference/jsxNamespaceGlobalReexport.types @@ -92,7 +92,7 @@ import { JSXInternal } from '..'; >JSXInternal : any export function jsx( ->jsx : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild;}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode; } +>jsx : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -112,7 +112,7 @@ export function jsx( ): VNode; export function jsx

( ->jsx : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild;}, key?: string): VNode; } +>jsx : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

@@ -127,7 +127,7 @@ export function jsx

( ): VNode; export function jsxs( ->jsxs : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild[];}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode; } +>jsxs : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild[]; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -147,7 +147,7 @@ export function jsxs( ): VNode; export function jsxs

( ->jsxs : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild[];}, key?: string): VNode; } +>jsxs : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild[]; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

@@ -162,7 +162,7 @@ export function jsxs

( ): VNode; export function jsxDEV( ->jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChildren;}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode; } +>jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChildren; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -182,7 +182,7 @@ export function jsxDEV( ): VNode; export function jsxDEV

( ->jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChildren;}, key?: string): VNode; } +>jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChildren; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

diff --git a/tests/baselines/reference/jsxNamespaceGlobalReexportMissingAliasTarget.types b/tests/baselines/reference/jsxNamespaceGlobalReexportMissingAliasTarget.types index ec727a6a4ce00..bbd7d7178ccf1 100644 --- a/tests/baselines/reference/jsxNamespaceGlobalReexportMissingAliasTarget.types +++ b/tests/baselines/reference/jsxNamespaceGlobalReexportMissingAliasTarget.types @@ -92,7 +92,7 @@ import { JSXInternal } from '..'; >JSXInternal : any export function jsx( ->jsx : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild;}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode; } +>jsx : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -112,7 +112,7 @@ export function jsx( ): VNode; export function jsx

( ->jsx : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild;}, key?: string): VNode; } +>jsx : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

@@ -127,7 +127,7 @@ export function jsx

( ): VNode; export function jsxs( ->jsxs : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild[];}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode; } +>jsxs : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild[]; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -147,7 +147,7 @@ export function jsxs( ): VNode; export function jsxs

( ->jsxs : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild[];}, key?: string): VNode; } +>jsxs : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild[]; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

@@ -162,7 +162,7 @@ export function jsxs

( ): VNode; export function jsxDEV( ->jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChildren;}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode; } +>jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChildren; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -182,7 +182,7 @@ export function jsxDEV( ): VNode; export function jsxDEV

( ->jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChildren;}, key?: string): VNode; } +>jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChildren; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

diff --git a/tests/baselines/reference/jsxNamespaceImplicitImportJSXNamespace.types b/tests/baselines/reference/jsxNamespaceImplicitImportJSXNamespace.types index e8d326fbf6cc2..87a8718e7410c 100644 --- a/tests/baselines/reference/jsxNamespaceImplicitImportJSXNamespace.types +++ b/tests/baselines/reference/jsxNamespaceImplicitImportJSXNamespace.types @@ -92,7 +92,7 @@ import { JSXInternal } from '..'; >JSXInternal : any export function jsx( ->jsx : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild;}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode; } +>jsx : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -112,7 +112,7 @@ export function jsx( ): VNode; export function jsx

( ->jsx : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild;}, key?: string): VNode; } +>jsx : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

@@ -128,7 +128,7 @@ export function jsx

( export function jsxs( ->jsxs : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild[];}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode; } +>jsxs : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChild[]; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -148,7 +148,7 @@ export function jsxs( ): VNode; export function jsxs

( ->jsxs : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild[];}, key?: string): VNode; } +>jsxs : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChild[] | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChild[]; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

@@ -164,7 +164,7 @@ export function jsxs

( export function jsxDEV( ->jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChildren;}, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode; } +>jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes & Record & { children?: ComponentChildren; }, key?: string): VNode;

(type: ComponentType

, props: P & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode; } type: string, >type : string @@ -184,7 +184,7 @@ export function jsxDEV( ): VNode; export function jsxDEV

( ->jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChildren;}, key?: string): VNode; } +>jsxDEV : { (type: string, props: JSXInternal.HTMLAttributes<{}> & JSXInternal.SVGAttributes<{}> & Record & { children?: ComponentChildren | undefined; }, key?: string | undefined): VNode;

(type: ComponentType

, props: Attributes & P & { children?: ComponentChildren; }, key?: string): VNode; } type: ComponentType

, >type : ComponentType

diff --git a/tests/baselines/reference/jsxPartialSpread.types b/tests/baselines/reference/jsxPartialSpread.types index 16e0324070b39..cab2808c9ed0c 100644 --- a/tests/baselines/reference/jsxPartialSpread.types +++ b/tests/baselines/reference/jsxPartialSpread.types @@ -3,8 +3,8 @@ === jsxPartialSpread.tsx === /// const Select = (p: {value?: unknown}) =>

; ->Select : (p: { value?: unknown;}) => JSX.Element ->(p: {value?: unknown}) =>

: (p: { value?: unknown;}) => JSX.Element +>Select : (p: { value?: unknown; }) => JSX.Element +>(p: {value?: unknown}) =>

: (p: { value?: unknown; }) => JSX.Element >p : { value?: unknown; } >value : unknown >

: JSX.Element @@ -15,7 +15,7 @@ import React from 'react'; >React : typeof React export function Repro({ SelectProps = {} }: { SelectProps?: Partial[0]> }) { ->Repro : ({ SelectProps }: { SelectProps?: Partial[0]>;}) => JSX.Element +>Repro : ({ SelectProps }: { SelectProps?: Partial[0]>; }) => JSX.Element >SelectProps : Partial<{ value?: unknown; }> >{} : {} >SelectProps : Partial<{ value?: unknown; }> | undefined diff --git a/tests/baselines/reference/keyofAndIndexedAccess.types b/tests/baselines/reference/keyofAndIndexedAccess.types index 2214533983129..08510627f3e8b 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.types +++ b/tests/baselines/reference/keyofAndIndexedAccess.types @@ -765,8 +765,8 @@ function f60(source: T, target: T) { } function f70(func: (k1: keyof (T | U), k2: keyof (T & U)) => void) { ->f70 : (func: (k1: keyof T & keyof U, k2: keyof T | keyof U) => void) => void ->func : (k1: keyof T & keyof U, k2: keyof T | keyof U) => void +>f70 : (func: (k1: keyof (T | U), k2: keyof (T & U)) => void) => void +>func : (k1: keyof (T | U), k2: keyof (T & U)) => void >k1 : keyof T & keyof U >k2 : keyof T | keyof U @@ -977,7 +977,7 @@ function f74(func: (x: T, y: U, k: K) => (T | U)[ } function f80(obj: T) { ->f80 : (obj: T) => void +>f80 : (obj: T) => void >a : { x: any; } >x : any >obj : T @@ -1028,7 +1028,7 @@ function f80(obj: T) { } function f81(obj: T) { ->f81 : (obj: T) => T["a"]["x"] +>f81 : (obj: T) => T["a"]["x"] >a : { x: any; } >x : any >obj : T @@ -1448,7 +1448,7 @@ function path(obj: any, ...keys: (string | number)[]): any { } type Thing = { ->Thing : { a: { x: number; y: string;}; b: boolean; } +>Thing : { a: { x: number; y: string; }; b: boolean; } a: { x: number, y: string }, >a : { x: number; y: string; } @@ -1719,7 +1719,7 @@ type Handler = { }; function onChangeGenericFunction(handler: Handler) { ->onChangeGenericFunction : (handler: Handler) => void +>onChangeGenericFunction : (handler: Handler) => void >handler : Handler >preset : number @@ -1973,7 +1973,7 @@ type Example = { [K in keyof T]: T[ >prop : any type Result = Example<{ a: { prop: string }; b: { prop: number } }>; ->Result : Example<{ a: { prop: string;}; b: { prop: number;}; }> +>Result : Example<{ a: { prop: string; }; b: { prop: number; }; }> >a : { prop: string; } >prop : string >b : { prop: number; } @@ -1987,7 +1987,7 @@ type Example2 = { [K in keyof Helper2]: Helper2[K]["prop"] }; >Example2 : Example2 type Result2 = Example2<{ 1: { prop: string }; 2: { prop: number } }>; ->Result2 : Example2<{ 1: { prop: string;}; 2: { prop: number;}; }> +>Result2 : Example2<{ 1: { prop: string; }; 2: { prop: number; }; }> >1 : { prop: string; } >prop : string >2 : { prop: number; } diff --git a/tests/baselines/reference/keyofAndIndexedAccess2.types b/tests/baselines/reference/keyofAndIndexedAccess2.types index b0ec73165f6e6..ede640393bd5d 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess2.types +++ b/tests/baselines/reference/keyofAndIndexedAccess2.types @@ -2,7 +2,7 @@ === keyofAndIndexedAccess2.ts === function f1(obj: { a: number, b: 0 | 1, c: string }, k0: 'a', k1: 'a' | 'b', k2: 'a' | 'b' | 'c') { ->f1 : (obj: { a: number; b: 0 | 1; c: string;}, k0: 'a', k1: 'a' | 'b', k2: 'a' | 'b' | 'c') => void +>f1 : (obj: { a: number; b: 0 | 1; c: string; }, k0: 'a', k1: 'a' | 'b', k2: 'a' | 'b' | 'c') => void >obj : { a: number; b: 0 | 1; c: string; } >a : number >b : 0 | 1 @@ -76,7 +76,7 @@ function f1(obj: { a: number, b: 0 | 1, c: string }, k0: 'a', k1: 'a' | 'b', k2: } function f2(a: { x: number, y: number }, b: { [key: string]: number }, c: T, k: keyof T) { ->f2 : (a: { x: number; y: number;}, b: { [key: string]: number; }, c: T, k: keyof T) => void +>f2 : (a: { x: number; y: number; }, b: { [key: string]: number; }, c: T, k: keyof T) => void >key : string >a : { x: number; y: number; } >x : number diff --git a/tests/baselines/reference/logicalAssignment2(target=es2015).types b/tests/baselines/reference/logicalAssignment2(target=es2015).types index 118ccaf02bbda..b3f777caebe8d 100644 --- a/tests/baselines/reference/logicalAssignment2(target=es2015).types +++ b/tests/baselines/reference/logicalAssignment2(target=es2015).types @@ -3,10 +3,10 @@ === logicalAssignment2.ts === interface A { foo: { ->foo : { bar(): { baz: 0 | 1 | 42 | undefined | '';}; baz: 0 | 1 | 42 | undefined | ''; } +>foo : { bar(): { baz: 0 | 1 | 42 | undefined | ''; }; baz: 0 | 1 | 42 | undefined | ''; } bar(): { ->bar : () => { baz: 0 | 1 | 42 | undefined | '';} +>bar : () => { baz: 0 | 1 | 42 | undefined | ''; } baz: 0 | 1 | 42 | undefined | '' >baz : "" | 0 | 1 | 42 | undefined diff --git a/tests/baselines/reference/logicalAssignment2(target=es2020).types b/tests/baselines/reference/logicalAssignment2(target=es2020).types index 118ccaf02bbda..b3f777caebe8d 100644 --- a/tests/baselines/reference/logicalAssignment2(target=es2020).types +++ b/tests/baselines/reference/logicalAssignment2(target=es2020).types @@ -3,10 +3,10 @@ === logicalAssignment2.ts === interface A { foo: { ->foo : { bar(): { baz: 0 | 1 | 42 | undefined | '';}; baz: 0 | 1 | 42 | undefined | ''; } +>foo : { bar(): { baz: 0 | 1 | 42 | undefined | ''; }; baz: 0 | 1 | 42 | undefined | ''; } bar(): { ->bar : () => { baz: 0 | 1 | 42 | undefined | '';} +>bar : () => { baz: 0 | 1 | 42 | undefined | ''; } baz: 0 | 1 | 42 | undefined | '' >baz : "" | 0 | 1 | 42 | undefined diff --git a/tests/baselines/reference/logicalAssignment2(target=es2021).types b/tests/baselines/reference/logicalAssignment2(target=es2021).types index 118ccaf02bbda..b3f777caebe8d 100644 --- a/tests/baselines/reference/logicalAssignment2(target=es2021).types +++ b/tests/baselines/reference/logicalAssignment2(target=es2021).types @@ -3,10 +3,10 @@ === logicalAssignment2.ts === interface A { foo: { ->foo : { bar(): { baz: 0 | 1 | 42 | undefined | '';}; baz: 0 | 1 | 42 | undefined | ''; } +>foo : { bar(): { baz: 0 | 1 | 42 | undefined | ''; }; baz: 0 | 1 | 42 | undefined | ''; } bar(): { ->bar : () => { baz: 0 | 1 | 42 | undefined | '';} +>bar : () => { baz: 0 | 1 | 42 | undefined | ''; } baz: 0 | 1 | 42 | undefined | '' >baz : "" | 0 | 1 | 42 | undefined diff --git a/tests/baselines/reference/logicalAssignment2(target=esnext).types b/tests/baselines/reference/logicalAssignment2(target=esnext).types index 118ccaf02bbda..b3f777caebe8d 100644 --- a/tests/baselines/reference/logicalAssignment2(target=esnext).types +++ b/tests/baselines/reference/logicalAssignment2(target=esnext).types @@ -3,10 +3,10 @@ === logicalAssignment2.ts === interface A { foo: { ->foo : { bar(): { baz: 0 | 1 | 42 | undefined | '';}; baz: 0 | 1 | 42 | undefined | ''; } +>foo : { bar(): { baz: 0 | 1 | 42 | undefined | ''; }; baz: 0 | 1 | 42 | undefined | ''; } bar(): { ->bar : () => { baz: 0 | 1 | 42 | undefined | '';} +>bar : () => { baz: 0 | 1 | 42 | undefined | ''; } baz: 0 | 1 | 42 | undefined | '' >baz : "" | 0 | 1 | 42 | undefined diff --git a/tests/baselines/reference/mappedTypeAsClauses.types b/tests/baselines/reference/mappedTypeAsClauses.types index f92414a60d1fa..252edb7500708 100644 --- a/tests/baselines/reference/mappedTypeAsClauses.types +++ b/tests/baselines/reference/mappedTypeAsClauses.types @@ -202,7 +202,7 @@ type Task = { }; type Schema = { ->Schema : { root: { title: string; task: Task;}; Task: Task; } +>Schema : { root: { title: string; task: Task; }; Task: Task; } root: { >root : { title: string; task: Task; } diff --git a/tests/baselines/reference/mappedTypeGenericIndexedAccess.types b/tests/baselines/reference/mappedTypeGenericIndexedAccess.types index 75dd61b90a26e..d1f15b880d787 100644 --- a/tests/baselines/reference/mappedTypeGenericIndexedAccess.types +++ b/tests/baselines/reference/mappedTypeGenericIndexedAccess.types @@ -4,7 +4,7 @@ // Repro from #49242 type Types = { ->Types : { first: { a1: true;}; second: { a2: true;}; third: { a3: true;}; } +>Types : { first: { a1: true; }; second: { a2: true; }; third: { a3: true; }; } first: { a1: true }; >first : { a1: true; } @@ -75,7 +75,7 @@ class Test { // Repro from #49338 type TypesMap = { ->TypesMap : { 0: { foo: 'bar';}; 1: { a: 'b';}; } +>TypesMap : { 0: { foo: 'bar'; }; 1: { a: 'b'; }; } [0]: { foo: 'bar'; }; >[0] : { foo: 'bar'; } diff --git a/tests/baselines/reference/mappedTypeInferenceErrors.types b/tests/baselines/reference/mappedTypeInferenceErrors.types index 353799fa8baaf..77783bbedabd1 100644 --- a/tests/baselines/reference/mappedTypeInferenceErrors.types +++ b/tests/baselines/reference/mappedTypeInferenceErrors.types @@ -10,7 +10,7 @@ type ComputedOf = { } declare function foo(options: { props: P, computed: ComputedOf } & ThisType

): void; ->foo : (options: { props: P; computed: ComputedOf;} & ThisType

) => void +>foo : (options: { props: P; computed: ComputedOf; } & ThisType

) => void >options : { props: P; computed: ComputedOf; } & ThisType

(Inner: React.ComponentClass

): React.ComponentClass

{ ->myHigherOrderComponent :

(Inner: React.ComponentClass

) => React.ComponentClass

+>myHigherOrderComponent :

(Inner: React.ComponentClass

) => React.ComponentClass

>Inner : React.ComponentClass

>React : any >name : string diff --git a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.types b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.types index a423b23f3b2ab..d17d413d3b159 100644 --- a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.types +++ b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.types @@ -4,7 +4,7 @@ class C extends (class {} as new () => Readonly<{ attrib: number }>) { >C : C >(class {} as new () => Readonly<{ attrib: number }>) : Readonly<{ attrib: number; }> ->class {} as new () => Readonly<{ attrib: number }> : new () => Readonly<{ attrib: number;}> +>class {} as new () => Readonly<{ attrib: number }> : new () => Readonly<{ attrib: number; }> >class {} : typeof (Anonymous class) >attrib : number diff --git a/tests/baselines/reference/recursiveClassBaseType.types b/tests/baselines/reference/recursiveClassBaseType.types index aaff0f8485ebb..47ee66380958f 100644 --- a/tests/baselines/reference/recursiveClassBaseType.types +++ b/tests/baselines/reference/recursiveClassBaseType.types @@ -8,7 +8,7 @@ declare const p: (fn: () => T) => T; >fn : () => T declare const Base: (val: T) => { new(): T }; ->Base : (val: T) => new () => T +>Base : (val: T) => { new (): T; } >val : T class C extends Base({ x: p(() => []) }) { } diff --git a/tests/baselines/reference/recursiveConditionalEvaluationNonInfinite.types b/tests/baselines/reference/recursiveConditionalEvaluationNonInfinite.types index e52471ec61316..5463193c612b3 100644 --- a/tests/baselines/reference/recursiveConditionalEvaluationNonInfinite.types +++ b/tests/baselines/reference/recursiveConditionalEvaluationNonInfinite.types @@ -10,7 +10,7 @@ declare const x: Test; >x : { array: { notArray: number; }; } const y: { array: { notArray: number } } = x; // Error ->y : { array: { notArray: number;}; } +>y : { array: { notArray: number; }; } >array : { notArray: number; } >notArray : number >x : { array: { notArray: number; }; } diff --git a/tests/baselines/reference/recursiveConditionalTypes.types b/tests/baselines/reference/recursiveConditionalTypes.types index 2116e1cc89994..e38971b3076e9 100644 --- a/tests/baselines/reference/recursiveConditionalTypes.types +++ b/tests/baselines/reference/recursiveConditionalTypes.types @@ -179,8 +179,8 @@ declare let b3: InfBox; >b3 : InfBox declare let b4: { value: { value: { value: typeof b4 }}}; ->b4 : { value: { value: { value: typeof b4; };}; } ->value : { value: { value: typeof b4;}; } +>b4 : { value: { value: { value: typeof b4; }; }; } +>value : { value: { value: typeof b4; }; } >value : { value: typeof b4; } >value : { value: { value: { value: typeof b4; }; }; } >b4 : { value: { value: { value: any; }; }; } diff --git a/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types index fef68cb2482e3..31eb0b385d2fd 100644 --- a/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types +++ b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types @@ -21,7 +21,7 @@ type LiteralType = { >second : "second" } type MappedLiteralType = { ->MappedLiteralType : { first: { name: "first";}; second: { name: "second";}; } +>MappedLiteralType : { first: { name: "first"; }; second: { name: "second"; }; } first: { name: "first" }, >first : { name: "first"; } diff --git a/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types b/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types index 00b671a8a748b..cdeaf08e4e3b8 100644 --- a/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types +++ b/tests/baselines/reference/reverseMappedTypePrimitiveConstraintProperty.types @@ -2,7 +2,7 @@ === reverseMappedTypePrimitiveConstraintProperty.ts === declare function test< ->test : (obj: { [K in keyof T]: T[K]; }) => T +>test : (obj: { [K in keyof T]: T[K]; }) => T T extends { prop: string; nested: { nestedProp: string } }, >prop : string diff --git a/tests/baselines/reference/slightlyIndirectedDeepObjectLiteralElaborations.types b/tests/baselines/reference/slightlyIndirectedDeepObjectLiteralElaborations.types index c646f9ff828ef..1f7fd07a4e721 100644 --- a/tests/baselines/reference/slightlyIndirectedDeepObjectLiteralElaborations.types +++ b/tests/baselines/reference/slightlyIndirectedDeepObjectLiteralElaborations.types @@ -3,10 +3,10 @@ === slightlyIndirectedDeepObjectLiteralElaborations.ts === interface Foo { a: { ->a : { b: { c: { d: string; };}; } +>a : { b: { c: { d: string; }; }; } b: { ->b : { c: { d: string;}; } +>b : { c: { d: string; }; } c: { >c : { d: string; } diff --git a/tests/baselines/reference/spellingSuggestionJSXAttribute.types b/tests/baselines/reference/spellingSuggestionJSXAttribute.types index 9a54a2324f7e8..58297b587d016 100644 --- a/tests/baselines/reference/spellingSuggestionJSXAttribute.types +++ b/tests/baselines/reference/spellingSuggestionJSXAttribute.types @@ -6,7 +6,7 @@ import * as React from "react"; >React : typeof React function MyComp2(props: { className?: string, htmlFor?: string }) { ->MyComp2 : (props: { className?: string; htmlFor?: string;}) => any +>MyComp2 : (props: { className?: string; htmlFor?: string; }) => any >props : { className?: string; htmlFor?: string; } >className : string >htmlFor : string diff --git a/tests/baselines/reference/spreadOverwritesProperty.types b/tests/baselines/reference/spreadOverwritesProperty.types index 6e4cb3ce89a2e..843e6562741ef 100644 --- a/tests/baselines/reference/spreadOverwritesProperty.types +++ b/tests/baselines/reference/spreadOverwritesProperty.types @@ -33,7 +33,7 @@ var unused3 = { b: 1, ...abq } >abq : { a: number; b?: number; } function g(obj: { x: number | undefined }) { ->g : (obj: { x: number | undefined;}) => { x: number | undefined; } +>g : (obj: { x: number | undefined; }) => { x: number | undefined; } >obj : { x: number | undefined; } >x : number @@ -44,7 +44,7 @@ function g(obj: { x: number | undefined }) { >obj : { x: number; } } function h(obj: { x: number }) { ->h : (obj: { x: number;}) => { x: number; } +>h : (obj: { x: number; }) => { x: number; } >obj : { x: number; } >x : number diff --git a/tests/baselines/reference/spreadOverwritesPropertyStrict.types b/tests/baselines/reference/spreadOverwritesPropertyStrict.types index bdc7fdabad8a9..7e6d894f002b7 100644 --- a/tests/baselines/reference/spreadOverwritesPropertyStrict.types +++ b/tests/baselines/reference/spreadOverwritesPropertyStrict.types @@ -46,7 +46,7 @@ var unused5 = { ...abq, b: 1 } // ok >1 : 1 function g(obj: { x: number | undefined }) { ->g : (obj: { x: number | undefined;}) => { x: number | undefined; } +>g : (obj: { x: number | undefined; }) => { x: number | undefined; } >obj : { x: number | undefined; } >x : number | undefined @@ -57,7 +57,7 @@ function g(obj: { x: number | undefined }) { >obj : { x: number | undefined; } } function f(obj: { x: number } | undefined) { ->f : (obj: { x: number;} | undefined) => { x: number; } +>f : (obj: { x: number; } | undefined) => { x: number; } >obj : { x: number; } | undefined >x : number @@ -68,7 +68,7 @@ function f(obj: { x: number } | undefined) { >obj : { x: number; } | undefined } function h(obj: { x: number } | { x: string }) { ->h : (obj: { x: number;} | { x: string;}) => { x: number; } | { x: string; } +>h : (obj: { x: number; } | { x: string; }) => { x: number; } | { x: string; } >obj : { x: number; } | { x: string; } >x : number >x : string @@ -80,7 +80,7 @@ function h(obj: { x: number } | { x: string }) { >obj : { x: number; } | { x: string; } } function i(b: boolean, t: { command: string, ok: string }) { ->i : (b: boolean, t: { command: string; ok: string;}) => { command: string; ok?: string | undefined; } +>i : (b: boolean, t: { command: string; ok: string; }) => { command: string; ok?: string | undefined; } >b : boolean >t : { command: string; ok: string; } >command : string @@ -109,7 +109,7 @@ function j() { >"bye" : "bye" } function k(t: { command: string, ok: string }) { ->k : (t: { command: string; ok: string;}) => { command: string; ok: string; spoiler2: boolean; spoiler: boolean; } +>k : (t: { command: string; ok: string; }) => { command: string; ok: string; spoiler2: boolean; spoiler: boolean; } >t : { command: string; ok: string; } >command : string >ok : string @@ -127,7 +127,7 @@ function k(t: { command: string, ok: string }) { } function l(anyrequired: { a: any }) { ->l : (anyrequired: { a: any;}) => { a: any; } +>l : (anyrequired: { a: any; }) => { a: any; } >anyrequired : { a: any; } >a : any @@ -138,7 +138,7 @@ function l(anyrequired: { a: any }) { >anyrequired : { a: any; } } function m(anyoptional: { a?: any }) { ->m : (anyoptional: { a?: any;}) => { a: any; } +>m : (anyoptional: { a?: any; }) => { a: any; } >anyoptional : { a?: any; } >a : any diff --git a/tests/baselines/reference/spreadUnion3.types b/tests/baselines/reference/spreadUnion3.types index e239c402c2be8..a644aeeb59aa3 100644 --- a/tests/baselines/reference/spreadUnion3.types +++ b/tests/baselines/reference/spreadUnion3.types @@ -2,7 +2,7 @@ === spreadUnion3.ts === function f(x: { y: string } | undefined): { y: string } { ->f : (x: { y: string;} | undefined) => { y: string;} +>f : (x: { y: string; } | undefined) => { y: string; } >x : { y: string; } | undefined >y : string >y : string @@ -20,7 +20,7 @@ f(undefined) function g(t?: { a: number } | null): void { ->g : (t?: { a: number;} | null) => void +>g : (t?: { a: number; } | null) => void >t : { a: number; } | null | undefined >a : number diff --git a/tests/baselines/reference/staticInheritance.types b/tests/baselines/reference/staticInheritance.types index d261d17ef23b8..c3e21ad611672 100644 --- a/tests/baselines/reference/staticInheritance.types +++ b/tests/baselines/reference/staticInheritance.types @@ -2,7 +2,7 @@ === staticInheritance.ts === function doThing(x: { n: string }) { } ->doThing : (x: { n: string;}) => void +>doThing : (x: { n: string; }) => void >x : { n: string; } >n : string diff --git a/tests/baselines/reference/strictOptionalProperties1.types b/tests/baselines/reference/strictOptionalProperties1.types index 6dfefa5876bf7..eeb1c881ce511 100644 --- a/tests/baselines/reference/strictOptionalProperties1.types +++ b/tests/baselines/reference/strictOptionalProperties1.types @@ -49,7 +49,7 @@ function f1(obj: { a?: string, b?: string | undefined }) { } function f2(obj: { a?: string, b?: string | undefined }) { ->f2 : (obj: { a?: string; b?: string | undefined;}) => void +>f2 : (obj: { a?: string; b?: string | undefined; }) => void >obj : { a?: string; b?: string | undefined; } >a : string | undefined >b : string | undefined @@ -543,7 +543,7 @@ declare let tx4: [(string | undefined)?]; >tx4 : [(string | undefined)?] declare function f11(x: { p?: T }): T; ->f11 : (x: { p?: T;}) => T +>f11 : (x: { p?: T; }) => T >x : { p?: T; } >p : T | undefined diff --git a/tests/baselines/reference/strictSubtypeAndNarrowing.types b/tests/baselines/reference/strictSubtypeAndNarrowing.types index 3892eefe407d1..59e143e0e5e10 100644 --- a/tests/baselines/reference/strictSubtypeAndNarrowing.types +++ b/tests/baselines/reference/strictSubtypeAndNarrowing.types @@ -279,7 +279,7 @@ function checkD(f: FnTypes) { // Type of x = y is y with freshness preserved function fx10(obj1: { x?: number }, obj2: { x?: number, y?: number }) { ->fx10 : (obj1: { x?: number;}, obj2: { x?: number; y?: number;}) => void +>fx10 : (obj1: { x?: number; }, obj2: { x?: number; y?: number; }) => void >obj1 : { x?: number | undefined; } >x : number | undefined >obj2 : { x?: number | undefined; y?: number | undefined; } @@ -310,7 +310,7 @@ function fx10(obj1: { x?: number }, obj2: { x?: number, y?: number }) { } function fx11(): { x?: number } { ->fx11 : () => { x?: number;} +>fx11 : () => { x?: number; } >x : number | undefined let obj: { x?: number, y?: number }; @@ -450,7 +450,7 @@ declare function doesValueAtDeepPathSatisfy< type Foo = {value: {type: 'A'}; a?: number} | {value: {type: 'B'}; b?: number}; ->Foo : { value: { type: 'A';}; a?: number | undefined; } | { value: { type: 'B';}; b?: number | undefined; } +>Foo : { value: { type: 'A'; }; a?: number | undefined; } | { value: { type: 'B'; }; b?: number | undefined; } >value : { type: 'A'; } >type : "A" >a : number | undefined @@ -471,7 +471,7 @@ declare function assert(condition: boolean): asserts condition; >condition : boolean function test1(foo: Foo): {value: {type: 'A'}; a?: number} { ->test1 : (foo: Foo) => { value: { type: 'A'; }; a?: number;} +>test1 : (foo: Foo) => { value: { type: 'A'; }; a?: number; } >foo : Foo >value : { type: 'A'; } >type : "A" @@ -493,7 +493,7 @@ function test1(foo: Foo): {value: {type: 'A'}; a?: number} { } function test2(foo: Foo): {value: {type: 'A'}; a?: number} { ->test2 : (foo: Foo) => { value: { type: 'A'; }; a?: number;} +>test2 : (foo: Foo) => { value: { type: 'A'; }; a?: number; } >foo : Foo >value : { type: 'A'; } >type : "A" diff --git a/tests/baselines/reference/strictTypeofUnionNarrowing.types b/tests/baselines/reference/strictTypeofUnionNarrowing.types index c7b21596bb0ee..b5bcda9750296 100644 --- a/tests/baselines/reference/strictTypeofUnionNarrowing.types +++ b/tests/baselines/reference/strictTypeofUnionNarrowing.types @@ -2,7 +2,7 @@ === strictTypeofUnionNarrowing.ts === function stringify1(anything: { toString(): string } | undefined): string { ->stringify1 : (anything: { toString(): string;} | undefined) => string +>stringify1 : (anything: { toString(): string; } | undefined) => string >anything : { toString(): string; } | undefined >toString : () => string @@ -54,7 +54,7 @@ function stringify3(anything: unknown | undefined): string { // should simplify } function stringify4(anything: { toString?(): string } | undefined): string { ->stringify4 : (anything: { toString?(): string;} | undefined) => string +>stringify4 : (anything: { toString?(): string; } | undefined) => string >anything : { toString?(): string; } | undefined >toString : (() => string) | undefined diff --git a/tests/baselines/reference/subtypingWithCallSignatures2.types b/tests/baselines/reference/subtypingWithCallSignatures2.types index e58394becd6a1..eb1be75888835 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures2.types +++ b/tests/baselines/reference/subtypingWithCallSignatures2.types @@ -136,8 +136,8 @@ declare function foo10(a: any): any; >a : any declare function foo11(a: (x: { foo: string }, y: { foo: string; bar: string }) => Base): typeof a; ->foo11 : { (a: (x: { foo: string;}, y: { foo: string; bar: string;}) => Base): typeof a; (a: any): any; } ->a : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>foo11 : { (a: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): typeof a; (a: any): any; } +>a : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -172,8 +172,8 @@ declare function foo13(a: any): any; >a : any declare function foo14(a: (x: { a: string; b: number }) => Object): typeof a; ->foo14 : { (a: (x: { a: string; b: number;}) => Object): typeof a; (a: any): any; } ->a : (x: { a: string; b: number;}) => Object +>foo14 : { (a: (x: { a: string; b: number; }) => Object): typeof a; (a: any): any; } +>a : (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -533,11 +533,11 @@ var r8b = [r8arg2, r8arg1]; >r8arg1 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U var r9arg1 = (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => null; ->r9arg1 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U ->(x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => null : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>r9arg1 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U +>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => null : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number @@ -614,8 +614,8 @@ var r11arg1 = (x: T, y: T) => x; >x : T var r11arg2 = (x: { foo: string }, y: { foo: string; bar: string }) => null; ->r11arg2 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base ->(x: { foo: string }, y: { foo: string; bar: string }) => null : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>r11arg2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base +>(x: { foo: string }, y: { foo: string; bar: string }) => null : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -716,8 +716,8 @@ var r14arg1 = (x: { a: T; b: T }) => x.a; >a : T var r14arg2 = (x: { a: string; b: number }) => null; ->r14arg2 : (x: { a: string; b: number;}) => Object ->(x: { a: string; b: number }) => null : (x: { a: string; b: number;}) => Object +>r14arg2 : (x: { a: string; b: number; }) => Object +>(x: { a: string; b: number }) => null : (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number diff --git a/tests/baselines/reference/subtypingWithCallSignatures3.types b/tests/baselines/reference/subtypingWithCallSignatures3.types index b6f6b35364858..65272fe6773e4 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures3.types +++ b/tests/baselines/reference/subtypingWithCallSignatures3.types @@ -73,8 +73,8 @@ module Errors { >a2 : any declare function foo11(a2: (x: { foo: string }, y: { foo: string; bar: string }) => Base): typeof a2; ->foo11 : { (a2: (x: { foo: string;}, y: { foo: string; bar: string;}) => Base): (x: { foo: string;}, y: { foo: string; bar: string;}) => Base; (a2: any): any; } ->a2 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>foo11 : { (a2: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): (x: { foo: string; }, y: { foo: string; bar: string; }) => Base; (a2: any): any; } +>a2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -98,8 +98,8 @@ module Errors { >a2 : any declare function foo15(a2: (x: { a: string; b: number }) => number): typeof a2; ->foo15 : { (a2: (x: { a: string; b: number;}) => number): (x: { a: string; b: number;}) => number; (a2: any): any; } ->a2 : (x: { a: string; b: number;}) => number +>foo15 : { (a2: (x: { a: string; b: number; }) => number): (x: { a: string; b: number; }) => number; (a2: any): any; } +>a2 : (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number @@ -239,11 +239,11 @@ module Errors { >r2arg2 : (x: (arg: Base) => Derived) => (r: Base) => Derived2 var r3arg = (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => null; ->r3arg : (x: (arg: T) => U, y: (arg2: { foo: number;}) => U) => (r: T) => U ->(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => null : (x: (arg: T) => U, y: (arg2: { foo: number;}) => U) => (r: T) => U +>r3arg : (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U +>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => null : (x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: number;}) => U +>y : (arg2: { foo: number; }) => U >arg2 : { foo: number; } >foo : number >(r: T) => null : (r: T) => U @@ -317,8 +317,8 @@ module Errors { >null : T var r5arg2 = (x: { foo: string }, y: { foo: string; bar: string }) => null; ->r5arg2 : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base ->(x: { foo: string }, y: { foo: string; bar: string }) => null : (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>r5arg2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base +>(x: { foo: string }, y: { foo: string; bar: string }) => null : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -385,8 +385,8 @@ module Errors { >null : T var r7arg2 = (x: { a: string; b: number }) => 1; ->r7arg2 : (x: { a: string; b: number;}) => number ->(x: { a: string; b: number }) => 1 : (x: { a: string; b: number;}) => number +>r7arg2 : (x: { a: string; b: number; }) => number +>(x: { a: string; b: number }) => 1 : (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number diff --git a/tests/baselines/reference/subtypingWithConstructSignatures2.types b/tests/baselines/reference/subtypingWithConstructSignatures2.types index 9cf43fd1e83cf..361204a57b18d 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures2.types +++ b/tests/baselines/reference/subtypingWithConstructSignatures2.types @@ -136,8 +136,8 @@ declare function foo10(a: any): any; >a : any declare function foo11(a: new (x: { foo: string }, y: { foo: string; bar: string }) => Base): typeof a; ->foo11 : { (a: new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base): typeof a; (a: any): any; } ->a : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>foo11 : { (a: new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): typeof a; (a: any): any; } +>a : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -172,8 +172,8 @@ declare function foo13(a: any): any; >a : any declare function foo14(a: new (x: { a: string; b: number }) => Object): typeof a; ->foo14 : { (a: new (x: { a: string; b: number;}) => Object): typeof a; (a: any): any; } ->a : new (x: { a: string; b: number;}) => Object +>foo14 : { (a: new (x: { a: string; b: number; }) => Object): typeof a; (a: any): any; } +>a : new (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -494,10 +494,10 @@ var r8b = [r8arg2, r8arg1]; >r8arg1 : new (x: new (arg: T) => U, y: new (arg2: T) => U) => new (r: T) => U var r9arg1: new (x: new (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => new (r: T) => U; ->r9arg1 : new (x: new (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => new (r: T) => U +>r9arg1 : new (x: new (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => new (r: T) => U >x : new (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number @@ -561,7 +561,7 @@ var r11arg1: new (x: T, y: T) => T; >y : T var r11arg2: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->r11arg2 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>r11arg2 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -649,7 +649,7 @@ var r14arg1: new (x: { a: T; b: T }) => T; >b : T var r14arg2: new (x: { a: string; b: number }) => Object; ->r14arg2 : new (x: { a: string; b: number;}) => Object +>r14arg2 : new (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number diff --git a/tests/baselines/reference/subtypingWithConstructSignatures3.types b/tests/baselines/reference/subtypingWithConstructSignatures3.types index f497e10743a05..d077036ed4897 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures3.types +++ b/tests/baselines/reference/subtypingWithConstructSignatures3.types @@ -73,8 +73,8 @@ module Errors { >a2 : any declare function foo11(a2: new (x: { foo: string }, y: { foo: string; bar: string }) => Base): typeof a2; ->foo11 : { (a2: new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base): new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base; (a2: any): any; } ->a2 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>foo11 : { (a2: new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base; (a2: any): any; } +>a2 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -98,8 +98,8 @@ module Errors { >a2 : any declare function foo15(a2: new (x: { a: string; b: number }) => number): typeof a2; ->foo15 : { (a2: new (x: { a: string; b: number;}) => number): new (x: { a: string; b: number;}) => number; (a2: any): any; } ->a2 : new (x: { a: string; b: number;}) => number +>foo15 : { (a2: new (x: { a: string; b: number; }) => number): new (x: { a: string; b: number; }) => number; (a2: any): any; } +>a2 : new (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number @@ -229,10 +229,10 @@ module Errors { >r2arg2 : new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2 var r3arg1: new (x: new (arg: T) => U, y: (arg2: { foo: number; }) => U) => new (r: T) => U; ->r3arg1 : new (x: new (arg: T) => U, y: (arg2: { foo: number;}) => U) => new (r: T) => U +>r3arg1 : new (x: new (arg: T) => U, y: (arg2: { foo: number; }) => U) => new (r: T) => U >x : new (arg: T) => U >arg : T ->y : (arg2: { foo: number;}) => U +>y : (arg2: { foo: number; }) => U >arg2 : { foo: number; } >foo : number >r : T @@ -295,7 +295,7 @@ module Errors { >y : T var r5arg2: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->r5arg2 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>r5arg2 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -355,7 +355,7 @@ module Errors { >b : T var r7arg2: new (x: { a: string; b: number }) => number; ->r7arg2 : new (x: { a: string; b: number;}) => number +>r7arg2 : new (x: { a: string; b: number; }) => number >x : { a: string; b: number; } >a : string >b : number diff --git a/tests/baselines/reference/subtypingWithConstructSignatures5.types b/tests/baselines/reference/subtypingWithConstructSignatures5.types index 5083e308cc679..da0960984d3e3 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures5.types +++ b/tests/baselines/reference/subtypingWithConstructSignatures5.types @@ -79,7 +79,7 @@ interface A { // T >x : Derived[] a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base >x : { foo: string; } >foo : string >y : { foo: string; bar: string; } @@ -97,7 +97,7 @@ interface A { // T >y : Derived[] a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number;}) => Object +>a14 : new (x: { a: string; b: number; }) => Object >x : { a: string; b: number; } >a : string >b : number @@ -154,10 +154,10 @@ interface I extends B { >r : T a9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number;}) => U) => (r: T) => U +>a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U >x : (arg: T) => U >arg : T ->y : (arg2: { foo: string; bing: number;}) => U +>y : (arg2: { foo: string; bing: number; }) => U >arg2 : { foo: string; bing: number; } >foo : string >bing : number diff --git a/tests/baselines/reference/subtypingWithConstructSignatures6.types b/tests/baselines/reference/subtypingWithConstructSignatures6.types index ee15eb9b4c042..61d716a27669f 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures6.types +++ b/tests/baselines/reference/subtypingWithConstructSignatures6.types @@ -109,7 +109,7 @@ interface I5 extends A { interface I7 extends A { a11: new (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->a11 : new (x: { foo: T;}, y: { foo: U; bar: U; }) => Base +>a11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base >x : { foo: T; } >foo : T >y : { foo: U; bar: U; } @@ -119,7 +119,7 @@ interface I7 extends A { interface I9 extends A { a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T;}) => T[] +>a16 : new (x: { a: T; b: T; }) => T[] >x : { a: T; b: T; } >a : T >b : T diff --git a/tests/baselines/reference/switchCaseCircularRefeference.types b/tests/baselines/reference/switchCaseCircularRefeference.types index 21d30958de5b2..244f338d8ac01 100644 --- a/tests/baselines/reference/switchCaseCircularRefeference.types +++ b/tests/baselines/reference/switchCaseCircularRefeference.types @@ -4,7 +4,7 @@ // Repro from #9507 function f(x: {a: "A", b} | {a: "C", e}) { ->f : (x: { a: "A"; b;} | { a: "C"; e;}) => void +>f : (x: { a: "A"; b; } | { a: "C"; e; }) => void >x : { a: "A"; b: any; } | { a: "C"; e: any; } >a : "A" >b : any diff --git a/tests/baselines/reference/symbolProperty21.types b/tests/baselines/reference/symbolProperty21.types index 7b75128184b3b..7dcc06620ece0 100644 --- a/tests/baselines/reference/symbolProperty21.types +++ b/tests/baselines/reference/symbolProperty21.types @@ -16,7 +16,7 @@ interface I { } declare function foo(p: I): { t: T; u: U }; ->foo : (p: I) => { t: T; u: U;} +>foo : (p: I) => { t: T; u: U; } >p : I >t : T >u : U diff --git a/tests/baselines/reference/symbolProperty35.types b/tests/baselines/reference/symbolProperty35.types index 25e29d06ca6b2..31f59411fa882 100644 --- a/tests/baselines/reference/symbolProperty35.types +++ b/tests/baselines/reference/symbolProperty35.types @@ -3,7 +3,7 @@ === symbolProperty35.ts === interface I1 { [Symbol.toStringTag](): { x: string } ->[Symbol.toStringTag] : () => { x: string;} +>[Symbol.toStringTag] : () => { x: string; } >Symbol.toStringTag : unique symbol >Symbol : SymbolConstructor >toStringTag : unique symbol @@ -11,7 +11,7 @@ interface I1 { } interface I2 { [Symbol.toStringTag](): { x: number } ->[Symbol.toStringTag] : () => { x: number;} +>[Symbol.toStringTag] : () => { x: number; } >Symbol.toStringTag : unique symbol >Symbol : SymbolConstructor >toStringTag : unique symbol diff --git a/tests/baselines/reference/symbolProperty41.types b/tests/baselines/reference/symbolProperty41.types index f7d0a9c845b8b..c8515edf0e109 100644 --- a/tests/baselines/reference/symbolProperty41.types +++ b/tests/baselines/reference/symbolProperty41.types @@ -5,7 +5,7 @@ class C { >C : C [Symbol.iterator](x: string): { x: string }; ->[Symbol.iterator] : { (x: string): { x: string;}; (x: "hello"): { x: string; hello: string; }; } +>[Symbol.iterator] : { (x: string): { x: string; }; (x: "hello"): { x: string; hello: string; }; } >Symbol.iterator : unique symbol >Symbol : SymbolConstructor >iterator : unique symbol @@ -13,7 +13,7 @@ class C { >x : string [Symbol.iterator](x: "hello"): { x: string; hello: string }; ->[Symbol.iterator] : { (x: string): { x: string; }; (x: "hello"): { x: string; hello: string;}; } +>[Symbol.iterator] : { (x: string): { x: string; }; (x: "hello"): { x: string; hello: string; }; } >Symbol.iterator : unique symbol >Symbol : SymbolConstructor >iterator : unique symbol diff --git a/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressions.types b/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressions.types index 7fda78de0ffae..54b5c0f6561af 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressions.types +++ b/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressions.types @@ -7,7 +7,7 @@ interface I { >subs : number[] member: { ->member : new (s: string) => new (n: number) => { new (): boolean;} +>member : new (s: string) => new (n: number) => { new (): boolean; } new (s: string): { >s : string diff --git a/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.types b/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.types index 7ca5153a048c7..de96fe594ee97 100644 --- a/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.types +++ b/tests/baselines/reference/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.types @@ -7,7 +7,7 @@ interface I { >subs : number[] member: { ->member : new (s: string) => new (n: number) => { new (): boolean;} +>member : new (s: string) => new (n: number) => { new (): boolean; } new (s: string): { >s : string diff --git a/tests/baselines/reference/targetTypeCastTest.types b/tests/baselines/reference/targetTypeCastTest.types index b1cee9f7b1cd0..f1e20a6b6d7fd 100644 --- a/tests/baselines/reference/targetTypeCastTest.types +++ b/tests/baselines/reference/targetTypeCastTest.types @@ -2,7 +2,7 @@ === targetTypeCastTest.ts === declare var Point: { new(x:number, y:number): {x: number; y: number; }; } ->Point : new (x: number, y: number) => { x: number; y: number;} +>Point : new (x: number, y: number) => { x: number; y: number; } >x : number >y : number >x : number diff --git a/tests/baselines/reference/targetTypeVoidFunc.types b/tests/baselines/reference/targetTypeVoidFunc.types index 159f46bd945e8..fe495f9cab077 100644 --- a/tests/baselines/reference/targetTypeVoidFunc.types +++ b/tests/baselines/reference/targetTypeVoidFunc.types @@ -2,7 +2,7 @@ === targetTypeVoidFunc.ts === function f1(): { new (): number; } { ->f1 : () => { new (): number;} +>f1 : () => { new (): number; } return function () { return; } >function () { return; } : () => void diff --git a/tests/baselines/reference/templateLiteralTypes3.types b/tests/baselines/reference/templateLiteralTypes3.types index 67115bf715ab6..4e90d86a2eaf6 100644 --- a/tests/baselines/reference/templateLiteralTypes3.types +++ b/tests/baselines/reference/templateLiteralTypes3.types @@ -384,8 +384,8 @@ interface ITest

> { // Repro from #45906 type Schema = { a: { b: { c: number } } }; ->Schema : { a: { b: { c: number; };}; } ->a : { b: { c: number;}; } +>Schema : { a: { b: { c: number; }; }; } +>a : { b: { c: number; }; } >b : { c: number; } >c : number diff --git a/tests/baselines/reference/templateLiteralTypes4.types b/tests/baselines/reference/templateLiteralTypes4.types index e139cd975a4dd..2b876e9708051 100644 --- a/tests/baselines/reference/templateLiteralTypes4.types +++ b/tests/baselines/reference/templateLiteralTypes4.types @@ -468,12 +468,12 @@ type TypedObjectOrdinalMembers = { interface TypedObjectMembers { // get/set a field by name get(key: K): FieldType["type"]>; ->get : (key: K) => FieldType["type"]> +>get : (key: K) => FieldType["type"]> >key : K >name : K set(key: K, value: FieldType["type"]>): void; ->set : (key: K, value: FieldType["type"]>) => void +>set : (key: K, value: FieldType["type"]>) => void >key : K >value : FieldType["type"]> >name : K diff --git a/tests/baselines/reference/thisInTypeQuery.types b/tests/baselines/reference/thisInTypeQuery.types index 1814f2cb2e62f..b1ace4d42c8c7 100644 --- a/tests/baselines/reference/thisInTypeQuery.types +++ b/tests/baselines/reference/thisInTypeQuery.types @@ -34,8 +34,8 @@ class MyClass { >runTypeFails : () => void const params = null as any as { a: { key: string } } | null; ->params : { a: { key: string;}; } | null ->null as any as { a: { key: string } } | null : { a: { key: string;}; } | null +>params : { a: { key: string; }; } | null +>null as any as { a: { key: string } } | null : { a: { key: string; }; } | null >null as any : any >a : { key: string; } >key : string diff --git a/tests/baselines/reference/thisTypeInFunctions.types b/tests/baselines/reference/thisTypeInFunctions.types index b8a78ff5f3636..f0704e7a9f330 100644 --- a/tests/baselines/reference/thisTypeInFunctions.types +++ b/tests/baselines/reference/thisTypeInFunctions.types @@ -39,7 +39,7 @@ class C { >m : number } explicitProperty(this: {n: number}, m: number): number { ->explicitProperty : (this: { n: number;}, m: number) => number +>explicitProperty : (this: { n: number; }, m: number) => number >this : { n: number; } >n : number >m : number @@ -79,7 +79,7 @@ interface I { >this : void explicitStructural(this: {a: number}): number; ->explicitStructural : (this: { a: number;}) => number +>explicitStructural : (this: { a: number; }) => number >this : { a: number; } >a : number @@ -92,7 +92,7 @@ interface I { >this : this } function explicitStructural(this: { y: number }, x: number): number { ->explicitStructural : (this: { y: number;}, x: number) => number +>explicitStructural : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -105,7 +105,7 @@ function explicitStructural(this: { y: number }, x: number): number { >y : number } function justThis(this: { y: number }): number { ->justThis : (this: { y: number;}) => number +>justThis : (this: { y: number; }) => number >this : { y: number; } >y : number @@ -238,9 +238,9 @@ impl.explicitThis = function () { return this.a; }; // parameter checking let ok: {y: number, f: (this: { y: number }, x: number) => number} = { y: 12, f: explicitStructural }; ->ok : { y: number; f: (this: { y: number;}, x: number) => number; } +>ok : { y: number; f: (this: { y: number; }, x: number) => number; } >y : number ->f : (this: { y: number;}, x: number) => number +>f : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -339,7 +339,7 @@ d.explicitThis(12); >12 : 12 let reconstructed: { ->reconstructed : { n: number; explicitThis(this: C, m: number): number; explicitC(this: C, m: number): number; explicitProperty: (this: { n: number;}, m: number) => number; explicitVoid(this: void, m: number): number; } +>reconstructed : { n: number; explicitThis(this: C, m: number): number; explicitC(this: C, m: number): number; explicitProperty: (this: { n: number; }, m: number) => number; explicitVoid(this: void, m: number): number; } n: number, >n : number @@ -355,7 +355,7 @@ let reconstructed: { >m : number explicitProperty: (this: {n : number}, m: number) => number, ->explicitProperty : (this: { n: number;}, m: number) => number +>explicitProperty : (this: { n: number; }, m: number) => number >this : { n: number; } >n : number >m : number @@ -424,11 +424,11 @@ explicitVoid(12); // assignment checking let unboundToSpecified: (this: { y: number }, x: number) => number = x => x + this.y; // ok, this:any ->unboundToSpecified : (this: { y: number;}, x: number) => number +>unboundToSpecified : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number ->x => x + this.y : (this: { y: number;}, x: number) => any +>x => x + this.y : (this: { y: number; }, x: number) => any >x : number >x + this.y : any >x : number @@ -437,18 +437,18 @@ let unboundToSpecified: (this: { y: number }, x: number) => number = x => x + th >y : any let specifiedToSpecified: (this: {y: number}, x: number) => number = explicitStructural; ->specifiedToSpecified : (this: { y: number;}, x: number) => number +>specifiedToSpecified : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number >explicitStructural : (this: { y: number; }, x: number) => number let anyToSpecified: (this: { y: number }, x: number) => number = function(x: number): number { return x + 12; }; ->anyToSpecified : (this: { y: number;}, x: number) => number +>anyToSpecified : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number ->function(x: number): number { return x + 12; } : (this: { y: number;}, x: number) => number +>function(x: number): number { return x + 12; } : (this: { y: number; }, x: number) => number >x : number >x + 12 : number >x : number @@ -474,14 +474,14 @@ let specifiedLambda: (this: void, x: number) => number = x => x + 12; >12 : 12 let unspecifiedLambdaToSpecified: (this: {y: number}, x: number) => number = unspecifiedLambda; ->unspecifiedLambdaToSpecified : (this: { y: number;}, x: number) => number +>unspecifiedLambdaToSpecified : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number >unspecifiedLambda : (x: number) => number let specifiedLambdaToSpecified: (this: {y: number}, x: number) => number = specifiedLambda; ->specifiedLambdaToSpecified : (this: { y: number;}, x: number) => number +>specifiedLambdaToSpecified : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -494,7 +494,7 @@ let explicitCFunction: (this: C, m: number) => number; >m : number let explicitPropertyFunction: (this: {n: number}, m: number) => number; ->explicitPropertyFunction : (this: { n: number;}, m: number) => number +>explicitPropertyFunction : (this: { n: number; }, m: number) => number >this : { n: number; } >n : number >m : number @@ -528,11 +528,11 @@ c.explicitProperty = explicitPropertyFunction; >explicitPropertyFunction : (this: { n: number; }, m: number) => number c.explicitProperty = function(this: {n: number}, m: number) { return this.n + m }; ->c.explicitProperty = function(this: {n: number}, m: number) { return this.n + m } : (this: { n: number;}, m: number) => number +>c.explicitProperty = function(this: {n: number}, m: number) { return this.n + m } : (this: { n: number; }, m: number) => number >c.explicitProperty : (this: { n: number; }, m: number) => number >c : C >explicitProperty : (this: { n: number; }, m: number) => number ->function(this: {n: number}, m: number) { return this.n + m } : (this: { n: number;}, m: number) => number +>function(this: {n: number}, m: number) { return this.n + m } : (this: { n: number; }, m: number) => number >this : { n: number; } >n : number >m : number @@ -876,7 +876,7 @@ function InterfaceThis(this: I) { >12 : 12 } function LiteralTypeThis(this: {x: string}) { ->LiteralTypeThis : (this: { x: string;}) => void +>LiteralTypeThis : (this: { x: string; }) => void >this : { x: string; } >x : string diff --git a/tests/baselines/reference/thisTypeInFunctionsNegative.types b/tests/baselines/reference/thisTypeInFunctionsNegative.types index 3b94d6b69f340..79f8a843bc695 100644 --- a/tests/baselines/reference/thisTypeInFunctionsNegative.types +++ b/tests/baselines/reference/thisTypeInFunctionsNegative.types @@ -43,7 +43,7 @@ class C { >m : number } explicitProperty(this: {n: number}, m: number): number { ->explicitProperty : (this: { n: number;}, m: number) => number +>explicitProperty : (this: { n: number; }, m: number) => number >this : { n: number; } >n : number >m : number @@ -112,7 +112,7 @@ interface I { >this : void explicitStructural(this: {a: number}): number; ->explicitStructural : (this: { a: number;}) => number +>explicitStructural : (this: { a: number; }) => number >this : { a: number; } >a : number @@ -189,7 +189,7 @@ implExplicitInterface(); // error, no 'a' in 'void' >implExplicitInterface : (this: I) => number function explicitStructural(this: { y: number }, x: number): number { ->explicitStructural : (this: { y: number;}, x: number) => number +>explicitStructural : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -202,7 +202,7 @@ function explicitStructural(this: { y: number }, x: number): number { >y : number } function propertyName(this: { y: number }, x: number): number { ->propertyName : (this: { y: number;}, x: number) => number +>propertyName : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -227,9 +227,9 @@ function voidThisSpecified(this: void, x: number): number { >notSpecified : any } let ok: {y: number, f: (this: { y: number }, x: number) => number} = { y: 12, explicitStructural }; ->ok : { y: number; f: (this: { y: number;}, x: number) => number; } +>ok : { y: number; f: (this: { y: number; }, x: number) => number; } >y : number ->f : (this: { y: number;}, x: number) => number +>f : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -239,9 +239,9 @@ let ok: {y: number, f: (this: { y: number }, x: number) => number} = { y: 12, ex >explicitStructural : (this: { y: number; }, x: number) => number let wrongPropertyType: {y: string, f: (this: { y: number }, x: number) => number} = { y: 'foo', explicitStructural }; ->wrongPropertyType : { y: string; f: (this: { y: number;}, x: number) => number; } +>wrongPropertyType : { y: string; f: (this: { y: number; }, x: number) => number; } >y : string ->f : (this: { y: number;}, x: number) => number +>f : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -251,9 +251,9 @@ let wrongPropertyType: {y: string, f: (this: { y: number }, x: number) => number >explicitStructural : (this: { y: number; }, x: number) => number let wrongPropertyName: {wrongName: number, f: (this: { y: number }, x: number) => number} = { wrongName: 12, explicitStructural }; ->wrongPropertyName : { wrongName: number; f: (this: { y: number;}, x: number) => number; } +>wrongPropertyName : { wrongName: number; f: (this: { y: number; }, x: number) => number; } >wrongName : number ->f : (this: { y: number;}, x: number) => number +>f : (this: { y: number; }, x: number) => number >this : { y: number; } >y : number >x : number @@ -394,7 +394,7 @@ let specifiedToVoid: (this: void, x: number) => number = explicitStructural; >explicitStructural : (this: { y: number; }, x: number) => number let reconstructed: { ->reconstructed : { n: number; explicitThis(this: C, m: number): number; explicitC(this: C, m: number): number; explicitProperty: (this: { n: number;}, m: number) => number; explicitVoid(this: void, m: number): number; } +>reconstructed : { n: number; explicitThis(this: C, m: number): number; explicitC(this: C, m: number): number; explicitProperty: (this: { n: number; }, m: number) => number; explicitVoid(this: void, m: number): number; } n: number, >n : number @@ -410,7 +410,7 @@ let reconstructed: { >m : number explicitProperty: (this: {n : number}, m: number) => number, ->explicitProperty : (this: { n: number;}, m: number) => number +>explicitProperty : (this: { n: number; }, m: number) => number >this : { n: number; } >n : number >m : number @@ -460,7 +460,7 @@ let d = new D(); >D : typeof D let explicitXProperty: (this: { x: number }, m: number) => number; ->explicitXProperty : (this: { x: number;}, m: number) => number +>explicitXProperty : (this: { x: number; }, m: number) => number >this : { x: number; } >x : number >m : number @@ -770,8 +770,8 @@ c.explicitProperty = (this, m) => m + this.n; >n : any const f2 = (this: {n: number}, m: number) => m + this.n; ->f2 : (this: { n: number;}, m: number) => any ->(this: {n: number}, m: number) => m + this.n : (this: { n: number;}, m: number) => any +>f2 : (this: { n: number; }, m: number) => any +>(this: {n: number}, m: number) => m + this.n : (this: { n: number; }, m: number) => any >this : { n: number; } >n : number >m : number @@ -782,8 +782,8 @@ const f2 = (this: {n: number}, m: number) => m + this.n; >n : any const f3 = async (this: {n: number}, m: number) => m + this.n; ->f3 : (this: { n: number;}, m: number) => Promise ->async (this: {n: number}, m: number) => m + this.n : (this: { n: number;}, m: number) => Promise +>f3 : (this: { n: number; }, m: number) => Promise +>async (this: {n: number}, m: number) => m + this.n : (this: { n: number; }, m: number) => Promise >this : { n: number; } >n : number >m : number @@ -794,8 +794,8 @@ const f3 = async (this: {n: number}, m: number) => m + this.n; >n : any const f4 = async (this: {n: number}, m: number) => m + this.n; ->f4 : (this: { n: number;}, m: number) => Promise ->async (this: {n: number}, m: number) => m + this.n : (this: { n: number;}, m: number) => Promise +>f4 : (this: { n: number; }, m: number) => Promise +>async (this: {n: number}, m: number) => m + this.n : (this: { n: number; }, m: number) => Promise >this : { n: number; } >n : number >m : number diff --git a/tests/baselines/reference/thisTypeSyntacticContext.types b/tests/baselines/reference/thisTypeSyntacticContext.types index 6cf06e13a51da..0fc61552703ff 100644 --- a/tests/baselines/reference/thisTypeSyntacticContext.types +++ b/tests/baselines/reference/thisTypeSyntacticContext.types @@ -2,15 +2,15 @@ === thisTypeSyntacticContext.ts === function f(this: { n: number }) { ->f : (this: { n: number;}) => void +>f : (this: { n: number; }) => void >this : { n: number; } >n : number } const o: { n: number, test?: (this: { n: number }) => void } = { n: 1 } ->o : { n: number; test?: (this: { n: number;}) => void; } +>o : { n: number; test?: (this: { n: number; }) => void; } >n : number ->test : (this: { n: number;}) => void +>test : (this: { n: number; }) => void >this : { n: number; } >n : number >{ n: 1 } : { n: number; } diff --git a/tests/baselines/reference/tslibReExportHelpers2.types b/tests/baselines/reference/tslibReExportHelpers2.types index 7c69753e9b592..93187427a8ae5 100644 --- a/tests/baselines/reference/tslibReExportHelpers2.types +++ b/tests/baselines/reference/tslibReExportHelpers2.types @@ -19,7 +19,7 @@ export declare function __classPrivateFieldGet( ): V; export declare function __classPrivateFieldGet unknown, V>( ->__classPrivateFieldGet : { (receiver: T, state: { has(o: T): boolean; get(o: T): V; }, kind?: "f"): V; unknown, V>(receiver: T, state: T, kind: "f", f: { value: V;}): V; } +>__classPrivateFieldGet : { (receiver: T, state: { has(o: T): boolean; get(o: T): V; }, kind?: "f"): V; unknown, V>(receiver: T, state: T, kind: "f", f: { value: V; }): V; } >args : any[] receiver: T, diff --git a/tests/baselines/reference/tsxAttributeQuickinfoTypesSameAsObjectLiteral.types b/tests/baselines/reference/tsxAttributeQuickinfoTypesSameAsObjectLiteral.types index c35eb022b79ec..238db57fb3e47 100644 --- a/tests/baselines/reference/tsxAttributeQuickinfoTypesSameAsObjectLiteral.types +++ b/tests/baselines/reference/tsxAttributeQuickinfoTypesSameAsObjectLiteral.types @@ -13,8 +13,8 @@ namespace JSX { } const Foo = (props: { foo: "A" | "B" | "C" }) => {props.foo}; ->Foo : (props: { foo: "A" | "B" | "C";}) => JSX.Element ->(props: { foo: "A" | "B" | "C" }) => {props.foo} : (props: { foo: "A" | "B" | "C";}) => JSX.Element +>Foo : (props: { foo: "A" | "B" | "C"; }) => JSX.Element +>(props: { foo: "A" | "B" | "C" }) => {props.foo} : (props: { foo: "A" | "B" | "C"; }) => JSX.Element >props : { foo: "A" | "B" | "C"; } >foo : "A" | "B" | "C" >{props.foo} : JSX.Element diff --git a/tests/baselines/reference/tsxSfcReturnNull.types b/tests/baselines/reference/tsxSfcReturnNull.types index bbd033ee45283..ec923c501056f 100644 --- a/tests/baselines/reference/tsxSfcReturnNull.types +++ b/tests/baselines/reference/tsxSfcReturnNull.types @@ -10,7 +10,7 @@ const Foo = (props: any) => null; >props : any function Greet(x: {name?: string}) { ->Greet : (x: { name?: string;}) => any +>Greet : (x: { name?: string; }) => any >x : { name?: string; } >name : string diff --git a/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types b/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types index 9f38ceba9dcd4..aa44d22e324af 100644 --- a/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types +++ b/tests/baselines/reference/tsxSfcReturnNullStrictNullChecks.types @@ -10,7 +10,7 @@ const Foo = (props: any) => null; >props : any function Greet(x: {name?: string}) { ->Greet : (x: { name?: string;}) => null +>Greet : (x: { name?: string; }) => null >x : { name?: string | undefined; } >name : string | undefined diff --git a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.types b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.types index 7fcb2e7b8fdaa..861a18cdf3c15 100644 --- a/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.types +++ b/tests/baselines/reference/tsxSfcReturnUndefinedStrictNullChecks.types @@ -11,7 +11,7 @@ const Foo = (props: any) => undefined; >undefined : undefined function Greet(x: {name?: string}) { ->Greet : (x: { name?: string;}) => undefined +>Greet : (x: { name?: string; }) => undefined >x : { name?: string | undefined; } >name : string | undefined diff --git a/tests/baselines/reference/tsxSpreadChildren.types b/tests/baselines/reference/tsxSpreadChildren.types index ab12cf673a31a..1c3f619a4c58c 100644 --- a/tests/baselines/reference/tsxSpreadChildren.types +++ b/tests/baselines/reference/tsxSpreadChildren.types @@ -23,7 +23,7 @@ interface TodoListProps { >todos : TodoProp[] } function Todo(prop: { key: number, todo: string }) { ->Todo : (prop: { key: number; todo: string;}) => JSX.Element +>Todo : (prop: { key: number; todo: string; }) => JSX.Element >prop : { key: number; todo: string; } >key : number >todo : string diff --git a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es2015).types b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es2015).types index cdaa458897d5c..7dbd49fefa613 100644 --- a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es2015).types +++ b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es2015).types @@ -23,7 +23,7 @@ interface TodoListProps { >todos : TodoProp[] } function Todo(prop: { key: number, todo: string }) { ->Todo : (prop: { key: number; todo: string;}) => JSX.Element +>Todo : (prop: { key: number; todo: string; }) => JSX.Element >prop : { key: number; todo: string; } >key : number >todo : string diff --git a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es5).types b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es5).types index cdaa458897d5c..7dbd49fefa613 100644 --- a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es5).types +++ b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react,target=es5).types @@ -23,7 +23,7 @@ interface TodoListProps { >todos : TodoProp[] } function Todo(prop: { key: number, todo: string }) { ->Todo : (prop: { key: number; todo: string;}) => JSX.Element +>Todo : (prop: { key: number; todo: string; }) => JSX.Element >prop : { key: number; todo: string; } >key : number >todo : string diff --git a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).types b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).types index 1110fcf70e5be..09192cfdfa7b2 100644 --- a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).types +++ b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es2015).types @@ -23,7 +23,7 @@ interface TodoListProps { >todos : TodoProp[] } function Todo(prop: { key: number, todo: string }) { ->Todo : (prop: { key: number; todo: string;}) => any +>Todo : (prop: { key: number; todo: string; }) => any >prop : { key: number; todo: string; } >key : number >todo : string diff --git a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es5).types b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es5).types index 1110fcf70e5be..09192cfdfa7b2 100644 --- a/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es5).types +++ b/tests/baselines/reference/tsxSpreadChildrenInvalidType(jsx=react-jsx,target=es5).types @@ -23,7 +23,7 @@ interface TodoListProps { >todos : TodoProp[] } function Todo(prop: { key: number, todo: string }) { ->Todo : (prop: { key: number; todo: string;}) => any +>Todo : (prop: { key: number; todo: string; }) => any >prop : { key: number; todo: string; } >key : number >todo : string diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.types index a64d8fd618c44..7a346be789ccf 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload1.types @@ -5,27 +5,27 @@ import React = require('react') >React : typeof React declare function OneThing(k: {yxx: string}): JSX.Element; ->OneThing : { (k: { yxx: string;}): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } +>OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } >k : { yxx: string; } >yxx : string >JSX : any declare function OneThing(k: {yxx1: string, children: string}): JSX.Element; ->OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string;}): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } +>OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } >k : { yxx1: string; children: string; } >yxx1 : string >children : string >JSX : any declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; ->OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string;}): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } +>OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } >l : { yy: number; yy1: string; } >yy : number >yy1 : string >JSX : any declare function OneThing(l: {yy: number, yy1: string, yy2: boolean}): JSX.Element; ->OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean;}): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } +>OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } >l : { yy: number; yy1: string; yy2: boolean; } >yy : number >yy1 : string @@ -33,7 +33,7 @@ declare function OneThing(l: {yy: number, yy1: string, yy2: boolean}): JSX.Eleme >JSX : any declare function OneThing(l1: {data: string, "data-prop": boolean}): JSX.Element; ->OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean;}): JSX.Element; } +>OneThing : { (k: { yxx: string; }): JSX.Element; (k: { yxx1: string; children: string; }): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; (l: { yy: number; yy1: string; yy2: boolean; }): JSX.Element; (l1: { data: string; "data-prop": boolean; }): JSX.Element; } >l1 : { data: string; "data-prop": boolean; } >data : string >"data-prop" : boolean @@ -83,21 +83,21 @@ declare function TestingOneThing({y1: string}): JSX.Element; >JSX : any declare function TestingOneThing(j: {"extra-data": string, yy?: string}): JSX.Element; ->TestingOneThing : { ({ y1: string }: { y1: any; }): JSX.Element; (j: { "extra-data": string; yy?: string;}): JSX.Element; (n: { yy: number; direction?: number; }): JSX.Element; (n: { yy: string; name: string; }): JSX.Element; } +>TestingOneThing : { ({ y1: string }: { y1: any; }): JSX.Element; (j: { "extra-data": string; yy?: string; }): JSX.Element; (n: { yy: number; direction?: number; }): JSX.Element; (n: { yy: string; name: string; }): JSX.Element; } >j : { "extra-data": string; yy?: string; } >"extra-data" : string >yy : string >JSX : any declare function TestingOneThing(n: {yy: number, direction?: number}): JSX.Element; ->TestingOneThing : { ({ y1: string }: { y1: any; }): JSX.Element; (j: { "extra-data": string; yy?: string; }): JSX.Element; (n: { yy: number; direction?: number;}): JSX.Element; (n: { yy: string; name: string; }): JSX.Element; } +>TestingOneThing : { ({ y1: string }: { y1: any; }): JSX.Element; (j: { "extra-data": string; yy?: string; }): JSX.Element; (n: { yy: number; direction?: number; }): JSX.Element; (n: { yy: string; name: string; }): JSX.Element; } >n : { yy: number; direction?: number; } >yy : number >direction : number >JSX : any declare function TestingOneThing(n: {yy: string, name: string}): JSX.Element; ->TestingOneThing : { ({ y1: string }: { y1: any; }): JSX.Element; (j: { "extra-data": string; yy?: string; }): JSX.Element; (n: { yy: number; direction?: number; }): JSX.Element; (n: { yy: string; name: string;}): JSX.Element; } +>TestingOneThing : { ({ y1: string }: { y1: any; }): JSX.Element; (j: { "extra-data": string; yy?: string; }): JSX.Element; (n: { yy: number; direction?: number; }): JSX.Element; (n: { yy: string; name: string; }): JSX.Element; } >n : { yy: string; name: string; } >yy : string >name : string @@ -144,14 +144,14 @@ const d5 = ; declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; ->TestingOptional : { (a: { y1?: string; y2?: number;}): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } >a : { y1?: string; y2?: number; } >y1 : string >y2 : number >JSX : any declare function TestingOptional(a: {y1: boolean, y2?: number, y3: boolean}): JSX.Element; ->TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean;}): JSX.Element; } +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } >a : { y1: boolean; y2?: number; y3: boolean; } >y1 : boolean >y2 : number diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types index 688cc3e74f3dd..26722b578b134 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload2.types @@ -9,7 +9,7 @@ declare function OneThing(): JSX.Element; >JSX : any declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; ->OneThing : { (): JSX.Element; (l: { yy: number; yy1: string;}): JSX.Element; } +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } >l : { yy: number; yy1: string; } >yy : number >yy1 : string diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types index 047a1176785c9..2f6c26e565599 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload3.types @@ -10,7 +10,7 @@ declare function ZeroThingOrTwoThing(): JSX.Element; >JSX : any declare function ZeroThingOrTwoThing(l: {yy: number, yy1: string}, context: Context): JSX.Element; ->ZeroThingOrTwoThing : { (): JSX.Element; (l: { yy: number; yy1: string;}, context: Context): JSX.Element; } +>ZeroThingOrTwoThing : { (): JSX.Element; (l: { yy: number; yy1: string; }, context: Context): JSX.Element; } >l : { yy: number; yy1: string; } >yy : number >yy1 : string @@ -57,19 +57,19 @@ const two5 = ; // it is just any so >1000 : 1000 declare function ThreeThing(l: {y1: string}): JSX.Element; ->ThreeThing : { (l: { y1: string;}): JSX.Element; (l: { y2: string; }): JSX.Element; (l: { yy: number; yy1: string; }, context: Context, updater: any): JSX.Element; } +>ThreeThing : { (l: { y1: string; }): JSX.Element; (l: { y2: string; }): JSX.Element; (l: { yy: number; yy1: string; }, context: Context, updater: any): JSX.Element; } >l : { y1: string; } >y1 : string >JSX : any declare function ThreeThing(l: {y2: string}): JSX.Element; ->ThreeThing : { (l: { y1: string; }): JSX.Element; (l: { y2: string;}): JSX.Element; (l: { yy: number; yy1: string; }, context: Context, updater: any): JSX.Element; } +>ThreeThing : { (l: { y1: string; }): JSX.Element; (l: { y2: string; }): JSX.Element; (l: { yy: number; yy1: string; }, context: Context, updater: any): JSX.Element; } >l : { y2: string; } >y2 : string >JSX : any declare function ThreeThing(l: {yy: number, yy1: string}, context: Context, updater: any): JSX.Element; ->ThreeThing : { (l: { y1: string; }): JSX.Element; (l: { y2: string; }): JSX.Element; (l: { yy: number; yy1: string;}, context: Context, updater: any): JSX.Element; } +>ThreeThing : { (l: { y1: string; }): JSX.Element; (l: { y2: string; }): JSX.Element; (l: { yy: number; yy1: string; }, context: Context, updater: any): JSX.Element; } >l : { yy: number; yy1: string; } >yy : number >yy1 : string diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.types index 91a851272e50f..2a66538ede36f 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.types @@ -9,7 +9,7 @@ declare function OneThing(): JSX.Element; >JSX : any declare function OneThing(l: {yy: number, yy1: string}): JSX.Element; ->OneThing : { (): JSX.Element; (l: { yy: number; yy1: string;}): JSX.Element; } +>OneThing : { (): JSX.Element; (l: { yy: number; yy1: string; }): JSX.Element; } >l : { yy: number; yy1: string; } >yy : number >yy1 : string @@ -94,13 +94,13 @@ const c7 = ; // Should error as there is extra attribu >yy : true declare function TestingOneThing(j: {"extra-data": string}): JSX.Element; ->TestingOneThing : { (j: { "extra-data": string;}): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } +>TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } >j : { "extra-data": string; } >"extra-data" : string >JSX : any declare function TestingOneThing(n: {yy: string, direction?: number}): JSX.Element; ->TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number;}): JSX.Element; } +>TestingOneThing : { (j: { "extra-data": string; }): JSX.Element; (n: { yy: string; direction?: number; }): JSX.Element; } >n : { yy: string; direction?: number; } >yy : string >direction : number @@ -121,14 +121,14 @@ const d2 = >direction : string declare function TestingOptional(a: {y1?: string, y2?: number}): JSX.Element; ->TestingOptional : { (a: { y1?: string; y2?: number;}): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } >a : { y1?: string; y2?: number; } >y1 : string >y2 : number >JSX : any declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Element}): JSX.Element; ->TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element;}): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } >a : { y1?: string; y2?: number; children: JSX.Element; } >y1 : string >y2 : number @@ -137,7 +137,7 @@ declare function TestingOptional(a: {y1?: string, y2?: number, children: JSX.Ele >JSX : any declare function TestingOptional(a: {y1: boolean, y2?: number, y3: boolean}): JSX.Element; ->TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean;}): JSX.Element; } +>TestingOptional : { (a: { y1?: string; y2?: number; }): JSX.Element; (a: { y1?: string; y2?: number; children: JSX.Element; }): JSX.Element; (a: { y1: boolean; y2?: number; y3: boolean; }): JSX.Element; } >a : { y1: boolean; y2?: number; y3: boolean; } >y1 : boolean >y2 : number diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.types b/tests/baselines/reference/tsxStatelessFunctionComponents1.types index 05bf9c6f43e98..1f121ece6a258 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents1.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.types @@ -11,7 +11,7 @@ function EmptyPropSFC() { } function Greet(x: {name: string}) { ->Greet : (x: { name: string;}) => JSX.Element +>Greet : (x: { name: string; }) => JSX.Element >x : { name: string; } >name : string @@ -33,7 +33,7 @@ function Meet({name = 'world'}) { >div : any } function MeetAndGreet(k: {"prop-name": string}) { ->MeetAndGreet : (k: { "prop-name": string;}) => JSX.Element +>MeetAndGreet : (k: { "prop-name": string; }) => JSX.Element >k : { "prop-name": string; } >"prop-name" : string diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.types b/tests/baselines/reference/tsxStatelessFunctionComponents2.types index 79da3ab02b99f..6a65bc562e747 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.types @@ -5,7 +5,7 @@ import React = require('react'); >React : typeof React function Greet(x: {name?: string}) { ->Greet : (x: { name?: string;}) => JSX.Element +>Greet : (x: { name?: string; }) => JSX.Element >x : { name?: string; } >name : string diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.types b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.types index 54739ce5187d5..c97c524499e05 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.types @@ -5,7 +5,7 @@ import React = require('react') >React : typeof React declare function ComponentWithTwoAttributes(l: {key1: K, value: V}): JSX.Element; ->ComponentWithTwoAttributes : (l: { key1: K; value: V;}) => JSX.Element +>ComponentWithTwoAttributes : (l: { key1: K; value: V; }) => JSX.Element >l : { key1: K; value: V; } >key1 : K >value : V diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.types b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.types index aae77bbb45b6d..7ddfaa77d1a83 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.types @@ -5,14 +5,14 @@ import React = require('react') >React : typeof React declare function ComponentSpecific1(l: {prop: U, "ignore-prop": string}): JSX.Element; ->ComponentSpecific1 : (l: { prop: U; "ignore-prop": string;}) => JSX.Element +>ComponentSpecific1 : (l: { prop: U; "ignore-prop": string; }) => JSX.Element >l : { prop: U; "ignore-prop": string; } >prop : U >"ignore-prop" : string >JSX : any declare function ComponentSpecific2(l: {prop: U}): JSX.Element; ->ComponentSpecific2 : (l: { prop: U;}) => JSX.Element +>ComponentSpecific2 : (l: { prop: U; }) => JSX.Element >l : { prop: U; } >prop : U >JSX : any diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.types b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.types index 4b897cde05d77..2db9bbf083262 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments3.types @@ -9,7 +9,7 @@ declare function OverloadComponent(): JSX.Element; >JSX : any declare function OverloadComponent(attr: {b: U, a?: string, "ignore-prop": boolean}): JSX.Element; ->OverloadComponent : { (): JSX.Element; (attr: { b: U; a?: string; "ignore-prop": boolean;}): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a?: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } >attr : { b: U; a?: string; "ignore-prop": boolean; } >b : U >a : string @@ -17,7 +17,7 @@ declare function OverloadComponent(attr: {b: U, a?: string, "ignore-prop": bo >JSX : any declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; ->OverloadComponent : { (): JSX.Element; (attr: { b: U; a?: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T;}): JSX.Element; } +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a?: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } >attr : { b: U; a: T; } >b : U >a : T diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.types b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.types index c9b0010bb955c..95cd6e0eb3c51 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.types @@ -9,7 +9,7 @@ declare function OverloadComponent(): JSX.Element; >JSX : any declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boolean}): JSX.Element; ->OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean;}): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } >attr : { b: U; a: string; "ignore-prop": boolean; } >b : U >a : string @@ -17,7 +17,7 @@ declare function OverloadComponent(attr: {b: U, a: string, "ignore-prop": boo >JSX : any declare function OverloadComponent(attr: {b: U, a: T}): JSX.Element; ->OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T;}): JSX.Element; } +>OverloadComponent : { (): JSX.Element; (attr: { b: U; a: string; "ignore-prop": boolean; }): JSX.Element; (attr: { b: U; a: T; }): JSX.Element; } >attr : { b: U; a: T; } >b : U >a : T diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.types b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.types index a939b7104c8a6..4f22d6b44ec6e 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.types @@ -29,13 +29,13 @@ function createComponent(arg: T) { } declare function ComponentSpecific(l: { prop: U }): JSX.Element; ->ComponentSpecific : (l: { prop: U;}) => JSX.Element +>ComponentSpecific : (l: { prop: U; }) => JSX.Element >l : { prop: U; } >prop : U >JSX : any declare function ComponentSpecific1(l: { prop: U, "ignore-prop": number }): JSX.Element; ->ComponentSpecific1 : (l: { prop: U; "ignore-prop": number;}) => JSX.Element +>ComponentSpecific1 : (l: { prop: U; "ignore-prop": number; }) => JSX.Element >l : { prop: U; "ignore-prop": number; } >prop : U >"ignore-prop" : number diff --git a/tests/baselines/reference/tsxTypeErrors.types b/tests/baselines/reference/tsxTypeErrors.types index 20244453e28c3..604c12b7ae4d6 100644 --- a/tests/baselines/reference/tsxTypeErrors.types +++ b/tests/baselines/reference/tsxTypeErrors.types @@ -41,7 +41,7 @@ class MyClass { >MyClass : MyClass props: { ->props : { pt?: { x: number; y: number;}; name?: string; reqd: boolean; } +>props : { pt?: { x: number; y: number; }; name?: string; reqd: boolean; } pt?: { x: number; y: number; }; >pt : { x: number; y: number; } diff --git a/tests/baselines/reference/tsxUnionElementType1.types b/tests/baselines/reference/tsxUnionElementType1.types index 7ab77bb3f7acb..4b4eff38e4f6e 100644 --- a/tests/baselines/reference/tsxUnionElementType1.types +++ b/tests/baselines/reference/tsxUnionElementType1.types @@ -5,7 +5,7 @@ import React = require('react'); >React : typeof React function SFC1(prop: { x: number }) { ->SFC1 : (prop: { x: number;}) => JSX.Element +>SFC1 : (prop: { x: number; }) => JSX.Element >prop : { x: number; } >x : number @@ -17,7 +17,7 @@ function SFC1(prop: { x: number }) { }; function SFC2(prop: { x: boolean }) { ->SFC2 : (prop: { x: boolean;}) => JSX.Element +>SFC2 : (prop: { x: boolean; }) => JSX.Element >prop : { x: boolean; } >x : boolean diff --git a/tests/baselines/reference/tsxUnionElementType2.types b/tests/baselines/reference/tsxUnionElementType2.types index d6e00e3d92f99..f1b3790b24b0e 100644 --- a/tests/baselines/reference/tsxUnionElementType2.types +++ b/tests/baselines/reference/tsxUnionElementType2.types @@ -5,7 +5,7 @@ import React = require('react'); >React : typeof React function SFC1(prop: { x: number }) { ->SFC1 : (prop: { x: number;}) => JSX.Element +>SFC1 : (prop: { x: number; }) => JSX.Element >prop : { x: number; } >x : number @@ -17,7 +17,7 @@ function SFC1(prop: { x: number }) { }; function SFC2(prop: { x: boolean }) { ->SFC2 : (prop: { x: boolean;}) => JSX.Element +>SFC2 : (prop: { x: boolean; }) => JSX.Element >prop : { x: boolean; } >x : boolean diff --git a/tests/baselines/reference/tsxUnionElementType5.types b/tests/baselines/reference/tsxUnionElementType5.types index 29be7e792ffa6..88f813aa4b167 100644 --- a/tests/baselines/reference/tsxUnionElementType5.types +++ b/tests/baselines/reference/tsxUnionElementType5.types @@ -23,7 +23,7 @@ function EmptySFC2() { } function SFC2(prop: { x: boolean }) { ->SFC2 : (prop: { x: boolean;}) => JSX.Element +>SFC2 : (prop: { x: boolean; }) => JSX.Element >prop : { x: boolean; } >x : boolean diff --git a/tests/baselines/reference/tsxUnionElementType6.types b/tests/baselines/reference/tsxUnionElementType6.types index 1f06872e2712f..533eeca68a1a7 100644 --- a/tests/baselines/reference/tsxUnionElementType6.types +++ b/tests/baselines/reference/tsxUnionElementType6.types @@ -23,7 +23,7 @@ function EmptySFC2() { } function SFC2(prop: { x: boolean }) { ->SFC2 : (prop: { x: boolean;}) => JSX.Element +>SFC2 : (prop: { x: boolean; }) => JSX.Element >prop : { x: boolean; } >x : boolean diff --git a/tests/baselines/reference/tsxUnionMemberChecksFilterDataProps.types b/tests/baselines/reference/tsxUnionMemberChecksFilterDataProps.types index 733799b694375..3aa363d172f98 100644 --- a/tests/baselines/reference/tsxUnionMemberChecksFilterDataProps.types +++ b/tests/baselines/reference/tsxUnionMemberChecksFilterDataProps.types @@ -7,13 +7,13 @@ import React, { ReactElement } from "react"; >ReactElement : any declare function NotHappy(props: ({ fixed?: boolean } | { value?: number })): ReactElement; ->NotHappy : (props: ({ fixed?: boolean;} | { value?: number;})) => ReactElement +>NotHappy : (props: ({ fixed?: boolean; } | { value?: number; })) => ReactElement >props : { fixed?: boolean; } | { value?: number; } >fixed : boolean >value : number declare function Happy(props: { fixed?: boolean, value?: number }): ReactElement; ->Happy : (props: { fixed?: boolean; value?: number;}) => ReactElement +>Happy : (props: { fixed?: boolean; value?: number; }) => ReactElement >props : { fixed?: boolean; value?: number; } >fixed : boolean >value : number diff --git a/tests/baselines/reference/typeArgInference.types b/tests/baselines/reference/typeArgInference.types index f3d04ef732929..c37fdffe6263a 100644 --- a/tests/baselines/reference/typeArgInference.types +++ b/tests/baselines/reference/typeArgInference.types @@ -3,7 +3,7 @@ === typeArgInference.ts === interface I { f(a1: { a: T; b: U }[], a2: { a: T; b: U }[]): { c: T; d: U }; ->f : (a1: { a: T; b: U;}[], a2: { a: T; b: U;}[]) => { c: T; d: U;} +>f : (a1: { a: T; b: U; }[], a2: { a: T; b: U; }[]) => { c: T; d: U; } >a1 : { a: T; b: U; }[] >a : T >b : U @@ -14,7 +14,7 @@ interface I { >d : U g(...arg: { a: T; b: U }[][]): { c: T; d: U }; ->g : (...arg: { a: T; b: U;}[][]) => { c: T; d: U;} +>g : (...arg: { a: T; b: U; }[][]) => { c: T; d: U; } >arg : { a: T; b: U; }[][] >a : T >b : U diff --git a/tests/baselines/reference/typeArgumentInferenceOrdering.types b/tests/baselines/reference/typeArgumentInferenceOrdering.types index f03a5e6af842d..ee339d541c3c4 100644 --- a/tests/baselines/reference/typeArgumentInferenceOrdering.types +++ b/tests/baselines/reference/typeArgumentInferenceOrdering.types @@ -19,7 +19,7 @@ interface Goo { } function foo(f: { y: T }): T { return null } ->foo : (f: { y: T;}) => T +>foo : (f: { y: T; }) => T >f : { y: T; } >y : T diff --git a/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty1.types b/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty1.types index a05262b27fa72..ac229989edd4f 100644 --- a/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty1.types +++ b/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty1.types @@ -34,10 +34,10 @@ interface Square { interface Subshape { "0": { ->"0" : { sub: { under: { shape: Shape; };}; } +>"0" : { sub: { under: { shape: Shape; }; }; } sub: { ->sub : { under: { shape: Shape;}; } +>sub : { under: { shape: Shape; }; } under: { >under : { shape: Shape; } diff --git a/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty5.types b/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty5.types index 7fc8d15f7a32e..72f157f75820b 100644 --- a/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty5.types +++ b/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty5.types @@ -31,7 +31,7 @@ if (a[aIndex] && a[aIndex].x) { } const b: { key: { x?: number } } = { key: {} }; ->b : { key: { x?: number;}; } +>b : { key: { x?: number; }; } >key : { x?: number | undefined; } >x : number | undefined >{ key: {} } : { key: {}; } diff --git a/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty6.types b/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty6.types index 5dc808ce84616..3ce0360544cef 100644 --- a/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty6.types +++ b/tests/baselines/reference/typeGuardNarrowsIndexedAccessOfKnownProperty6.types @@ -33,7 +33,7 @@ declare const bIndex: "key"; >bIndex : "key" const b: { key: { x?: number } } = { key: {} }; ->b : { key: { x?: number;}; } +>b : { key: { x?: number; }; } >key : { x?: number | undefined; } >x : number | undefined >{ key: {} } : { key: {}; } diff --git a/tests/baselines/reference/typeGuardOfFormTypeOfFunction.types b/tests/baselines/reference/typeGuardOfFormTypeOfFunction.types index f0d0bf47a6ecb..07ae602a05b3d 100644 --- a/tests/baselines/reference/typeGuardOfFormTypeOfFunction.types +++ b/tests/baselines/reference/typeGuardOfFormTypeOfFunction.types @@ -62,7 +62,7 @@ function f4(x: T) { } function f5(x: { s: string }) { ->f5 : (x: { s: string;}) => void +>f5 : (x: { s: string; }) => void >x : { s: string; } >s : string @@ -112,7 +112,7 @@ function f10(x: string | (() => string)) { } function f11(x: { s: string } | (() => string)) { ->f11 : (x: { s: string;} | (() => string)) => void +>f11 : (x: { s: string; } | (() => string)) => void >x : { s: string; } | (() => string) >s : string @@ -132,7 +132,7 @@ function f11(x: { s: string } | (() => string)) { } function f12(x: { s: string } | { n: number }) { ->f12 : (x: { s: string;} | { n: number;}) => void +>f12 : (x: { s: string; } | { n: number; }) => void >x : { s: string; } | { n: number; } >s : string >n : number diff --git a/tests/baselines/reference/typeGuardOfFromPropNameInUnionType.types b/tests/baselines/reference/typeGuardOfFromPropNameInUnionType.types index c3dfb49bf2c02..b9de9616b67c5 100644 --- a/tests/baselines/reference/typeGuardOfFromPropNameInUnionType.types +++ b/tests/baselines/reference/typeGuardOfFromPropNameInUnionType.types @@ -68,7 +68,7 @@ function multipleClasses(x: A | B | C | D) { } function anonymousClasses(x: { a: string; } | { b: number; }) { ->anonymousClasses : (x: { a: string;} | { b: number;}) => void +>anonymousClasses : (x: { a: string; } | { b: number; }) => void >x : { a: string; } | { b: number; } >a : string >b : number diff --git a/tests/baselines/reference/typeInferenceWithExcessPropertiesJsx.types b/tests/baselines/reference/typeInferenceWithExcessPropertiesJsx.types index 6adcc5665f96a..4a6107ddda9a8 100644 --- a/tests/baselines/reference/typeInferenceWithExcessPropertiesJsx.types +++ b/tests/baselines/reference/typeInferenceWithExcessPropertiesJsx.types @@ -13,7 +13,7 @@ type TranslationEntry = { >args : [] | [unknown] } type Translations = { ->Translations : { a: { args: [string];}; b: { args: [];}; } +>Translations : { a: { args: [string]; }; b: { args: []; }; } a: { args: [string] }, >a : { args: [string]; } diff --git a/tests/baselines/reference/typeName1.types b/tests/baselines/reference/typeName1.types index 9f4686cd59072..581d2b638317a 100644 --- a/tests/baselines/reference/typeName1.types +++ b/tests/baselines/reference/typeName1.types @@ -114,7 +114,7 @@ var x12:{z:I;x:boolean;y:(s:string)=>boolean;w:{ z:I;[s:string]:{ x; y; };[n:num >3 : 3 var x13:{ new(): number; new(n:number):number; x: string; w: {y: number;}; (): {}; } = 3; ->x13 : { (): {}; new (): number; new (n: number): number; x: string; w: { y: number;}; } +>x13 : { (): {}; new (): number; new (n: number): number; x: string; w: { y: number; }; } >n : number >x : string >w : { y: number; } diff --git a/tests/baselines/reference/typeParameterConstModifiers.types b/tests/baselines/reference/typeParameterConstModifiers.types index 5f7e230e14a25..e2568dc827375 100644 --- a/tests/baselines/reference/typeParameterConstModifiers.types +++ b/tests/baselines/reference/typeParameterConstModifiers.types @@ -126,7 +126,7 @@ const x42 = f4([{ a: 1, b: 'x' }, { a: 2, b: 'y' }]); >'y' : "y" declare function f5(obj: { x: T, y: T }): T; ->f5 : (obj: { x: T; y: T;}) => T +>f5 : (obj: { x: T; y: T; }) => T >obj : { x: T; y: T; } >x : T >y : T @@ -308,8 +308,8 @@ type T5 = { new (x: T): T }; // Corrected repro from #51745 type Obj = { a: { b: { c: "123" } } }; ->Obj : { a: { b: { c: "123"; };}; } ->a : { b: { c: "123";}; } +>Obj : { a: { b: { c: "123"; }; }; } +>a : { b: { c: "123"; }; } >b : { c: "123"; } >c : "123" @@ -450,7 +450,7 @@ const t1_55033 = factory_55033((a: { test: number }, b: string) => {})( >factory_55033((a: { test: number }, b: string) => {})( { test: 123 }, "some string") : readonly [{ readonly test: 123; }, "some string"] >factory_55033((a: { test: number }, b: string) => {}) : (...args: K) => K >factory_55033 : (cb: (...args: T) => void) => (...args: K) => K ->(a: { test: number }, b: string) => {} : (a: { test: number;}, b: string) => void +>(a: { test: number }, b: string) => {} : (a: { test: number; }, b: string) => void >a : { test: number; } >test : number >b : string @@ -470,7 +470,7 @@ const t2_55033 = factory_55033((a: { test: number }, b: string) => {})( >factory_55033((a: { test: number }, b: string) => {})( { test: 123 } as const, "some string") : readonly [{ readonly test: 123; }, "some string"] >factory_55033((a: { test: number }, b: string) => {}) : (...args: K) => K >factory_55033 : (cb: (...args: T) => void) => (...args: K) => K ->(a: { test: number }, b: string) => {} : (a: { test: number;}, b: string) => void +>(a: { test: number }, b: string) => {} : (a: { test: number; }, b: string) => void >a : { test: number; } >test : number >b : string @@ -510,7 +510,7 @@ const t1_55033_2 = factory_55033_2((a: { test: number }, b: string) => {})( >factory_55033_2((a: { test: number }, b: string) => {})( { test: 123 }, "some string") : [{ readonly test: 123; }, "some string"] >factory_55033_2((a: { test: number }, b: string) => {}) : (...args: K) => K >factory_55033_2 : (cb: (...args: T) => void) => (...args: K) => K ->(a: { test: number }, b: string) => {} : (a: { test: number;}, b: string) => void +>(a: { test: number }, b: string) => {} : (a: { test: number; }, b: string) => void >a : { test: number; } >test : number >b : string @@ -530,7 +530,7 @@ const t2_55033_2 = factory_55033_2((a: { test: number }, b: string) => {})( >factory_55033_2((a: { test: number }, b: string) => {})( { test: 123 } as const, "some string") : [{ readonly test: 123; }, "some string"] >factory_55033_2((a: { test: number }, b: string) => {}) : (...args: K) => K >factory_55033_2 : (cb: (...args: T) => void) => (...args: K) => K ->(a: { test: number }, b: string) => {} : (a: { test: number;}, b: string) => void +>(a: { test: number }, b: string) => {} : (a: { test: number; }, b: string) => void >a : { test: number; } >test : number >b : string diff --git a/tests/baselines/reference/typeParameterConstModifiersWithIntersection.types b/tests/baselines/reference/typeParameterConstModifiersWithIntersection.types index ac817e3200422..b93781454d109 100644 --- a/tests/baselines/reference/typeParameterConstModifiersWithIntersection.types +++ b/tests/baselines/reference/typeParameterConstModifiersWithIntersection.types @@ -11,7 +11,7 @@ interface Config { } declare function test< ->test : >(config: { produceThing: T1;} & TConfig) => TConfig +>test : >(config: { produceThing: T1; } & TConfig) => TConfig T1 extends { type: string }, >type : string diff --git a/tests/baselines/reference/typeParametersAvailableInNestedScope3.js b/tests/baselines/reference/typeParametersAvailableInNestedScope3.js index 059ab4da1feea..0fc42ec827d4c 100644 --- a/tests/baselines/reference/typeParametersAvailableInNestedScope3.js +++ b/tests/baselines/reference/typeParametersAvailableInNestedScope3.js @@ -5,10 +5,13 @@ function foo(v: T) { function a(a: T) { return a; } function b(): T { return v; } + type Alias = T; function c(v: T) { + type Alias2 = T; function a(a: T) { return a; } function b(): T { return v; } - return { a, b }; + function c(): [Alias, Alias2, T] { return null as any; } + return { a, b, c }; } return { a, b, c }; @@ -22,7 +25,8 @@ function foo(v) { function c(v) { function a(a) { return a; } function b() { return v; } - return { a: a, b: b }; + function c() { return null; } + return { a: a, b: b, c: c }; } return { a: a, b: b, c: c }; } @@ -35,5 +39,6 @@ declare function foo(v: T): { c: (v: T_2) => { a: (a: T_3) => T_3; b: () => T_2; + c: () => [T, T_2, T_4]; }; }; diff --git a/tests/baselines/reference/typeParametersAvailableInNestedScope3.symbols b/tests/baselines/reference/typeParametersAvailableInNestedScope3.symbols index c354c06a5ca51..1409bd4645b64 100644 --- a/tests/baselines/reference/typeParametersAvailableInNestedScope3.symbols +++ b/tests/baselines/reference/typeParametersAvailableInNestedScope3.symbols @@ -19,32 +19,48 @@ function foo(v: T) { >T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 0, 13)) >v : Symbol(v, Decl(typeParametersAvailableInNestedScope3.ts, 0, 16)) + type Alias = T; +>Alias : Symbol(Alias, Decl(typeParametersAvailableInNestedScope3.ts, 2, 33)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 0, 13)) + function c(v: T) { ->c : Symbol(c, Decl(typeParametersAvailableInNestedScope3.ts, 2, 33)) ->T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 4, 15)) ->v : Symbol(v, Decl(typeParametersAvailableInNestedScope3.ts, 4, 18)) ->T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 4, 15)) +>c : Symbol(c, Decl(typeParametersAvailableInNestedScope3.ts, 4, 19)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 5, 15)) +>v : Symbol(v, Decl(typeParametersAvailableInNestedScope3.ts, 5, 18)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 5, 15)) + + type Alias2 = T; +>Alias2 : Symbol(Alias2, Decl(typeParametersAvailableInNestedScope3.ts, 5, 25)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 5, 15)) function a(a: T) { return a; } ->a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 4, 25)) ->T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 5, 19)) ->a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 5, 22)) ->T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 5, 19)) ->a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 5, 22)) +>a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 6, 24)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 7, 19)) +>a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 7, 22)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 7, 19)) +>a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 7, 22)) function b(): T { return v; } ->b : Symbol(b, Decl(typeParametersAvailableInNestedScope3.ts, 5, 41)) ->T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 4, 15)) ->v : Symbol(v, Decl(typeParametersAvailableInNestedScope3.ts, 4, 18)) +>b : Symbol(b, Decl(typeParametersAvailableInNestedScope3.ts, 7, 41)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 5, 15)) +>v : Symbol(v, Decl(typeParametersAvailableInNestedScope3.ts, 5, 18)) + + function c(): [Alias, Alias2, T] { return null as any; } +>c : Symbol(c, Decl(typeParametersAvailableInNestedScope3.ts, 8, 37)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 9, 19)) +>Alias : Symbol(Alias, Decl(typeParametersAvailableInNestedScope3.ts, 2, 33)) +>Alias2 : Symbol(Alias2, Decl(typeParametersAvailableInNestedScope3.ts, 5, 25)) +>T : Symbol(T, Decl(typeParametersAvailableInNestedScope3.ts, 9, 19)) - return { a, b }; ->a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 7, 16)) ->b : Symbol(b, Decl(typeParametersAvailableInNestedScope3.ts, 7, 19)) + return { a, b, c }; +>a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 10, 16)) +>b : Symbol(b, Decl(typeParametersAvailableInNestedScope3.ts, 10, 19)) +>c : Symbol(c, Decl(typeParametersAvailableInNestedScope3.ts, 10, 22)) } return { a, b, c }; ->a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 10, 12)) ->b : Symbol(b, Decl(typeParametersAvailableInNestedScope3.ts, 10, 15)) ->c : Symbol(c, Decl(typeParametersAvailableInNestedScope3.ts, 10, 18)) +>a : Symbol(a, Decl(typeParametersAvailableInNestedScope3.ts, 13, 12)) +>b : Symbol(b, Decl(typeParametersAvailableInNestedScope3.ts, 13, 15)) +>c : Symbol(c, Decl(typeParametersAvailableInNestedScope3.ts, 13, 18)) } diff --git a/tests/baselines/reference/typeParametersAvailableInNestedScope3.types b/tests/baselines/reference/typeParametersAvailableInNestedScope3.types index 3874823aa2f34..03c910c5c09be 100644 --- a/tests/baselines/reference/typeParametersAvailableInNestedScope3.types +++ b/tests/baselines/reference/typeParametersAvailableInNestedScope3.types @@ -2,7 +2,7 @@ === typeParametersAvailableInNestedScope3.ts === function foo(v: T) { ->foo : (v: T) => { a: (a: T) => T; b: () => T; c: (v: T) => { a: (a: T) => T; b: () => T; }; } +>foo : (v: T) => { a: (a: T) => T; b: () => T; c: (v: T) => { a: (a: T) => T; b: () => T; c: () => [T, T, T]; }; } >v : T function a(a: T) { return a; } @@ -14,10 +14,16 @@ function foo(v: T) { >b : () => T >v : T + type Alias = T; +>Alias : T + function c(v: T) { ->c : (v: T) => { a: (a: T) => T; b: () => T; } +>c : (v: T) => { a: (a: T) => T; b: () => T; c: () => [T, T, T]; } >v : T + type Alias2 = T; +>Alias2 : T + function a(a: T) { return a; } >a : (a: T) => T >a : T @@ -27,16 +33,21 @@ function foo(v: T) { >b : () => T >v : T - return { a, b }; ->{ a, b } : { a: (a: T) => T; b: () => T; } + function c(): [Alias, Alias2, T] { return null as any; } +>c : () => [T, T, T] +>null as any : any + + return { a, b, c }; +>{ a, b, c } : { a: (a: T) => T; b: () => T; c: () => [T, T, T]; } >a : (a: T) => T >b : () => T +>c : () => [T, T, T] } return { a, b, c }; ->{ a, b, c } : { a: (a: T) => T; b: () => T; c: (v: T) => { a: (a: T) => T; b: () => T; }; } +>{ a, b, c } : { a: (a: T) => T; b: () => T; c: (v: T) => { a: (a: T) => T; b: () => T; c: () => [T, T, T]; }; } >a : (a: T) => T >b : () => T ->c : (v: T) => { a: (a: T) => T; b: () => T; } +>c : (v: T) => { a: (a: T) => T; b: () => T; c: () => [T, T, T]; } } diff --git a/tests/baselines/reference/typeParametersInStaticMethods.types b/tests/baselines/reference/typeParametersInStaticMethods.types index 5d4a9df05c484..f82994810d67a 100644 --- a/tests/baselines/reference/typeParametersInStaticMethods.types +++ b/tests/baselines/reference/typeParametersInStaticMethods.types @@ -5,8 +5,8 @@ class foo { >foo : foo static M(x: (x: T) => { x: { y: T } }) { ->M : (x: (x: T) => { x: { y: T; };}) => void ->x : (x: T) => { x: { y: T; };} +>M : (x: (x: T) => { x: { y: T; }; }) => void +>x : (x: T) => { x: { y: T; }; } >x : T >x : { y: T; } >y : T diff --git a/tests/baselines/reference/typePredicateStructuralMatch.types b/tests/baselines/reference/typePredicateStructuralMatch.types index 83c9ac06886a3..a2145b714389b 100644 --- a/tests/baselines/reference/typePredicateStructuralMatch.types +++ b/tests/baselines/reference/typePredicateStructuralMatch.types @@ -35,7 +35,7 @@ type Results = Result[]; >Results : Result[] function isResponseInData(value: T | { data: T}): value is { data: T } { ->isResponseInData : (value: T | { data: T;}) => value is { data: T; } +>isResponseInData : (value: T | { data: T; }) => value is { data: T; } >value : T | { data: T; } >data : T >data : T @@ -49,7 +49,7 @@ function isResponseInData(value: T | { data: T}): value is { data: T } { } function getResults1(value: Results | { data: Results }): Results { ->getResults1 : (value: Results | { data: Results;}) => Results +>getResults1 : (value: Results | { data: Results; }) => Results >value : Results | { data: Results; } >data : Results @@ -65,7 +65,7 @@ function getResults1(value: Results | { data: Results }): Results { } function isPlainResponse(value: T | { data: T}): value is T { ->isPlainResponse : (value: T | { data: T;}) => value is T +>isPlainResponse : (value: T | { data: T; }) => value is T >value : T | { data: T; } >data : T @@ -79,7 +79,7 @@ function isPlainResponse(value: T | { data: T}): value is T { } function getResults2(value: Results | { data: Results }): Results { ->getResults2 : (value: Results | { data: Results;}) => Results +>getResults2 : (value: Results | { data: Results; }) => Results >value : Results | { data: Results; } >data : Results diff --git a/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=false).types b/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=false).types index 60a1e45a330a6..01ded514ad792 100644 --- a/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=false).types +++ b/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=false).types @@ -10,7 +10,7 @@ declare function checkTruths(x: Facts): void; >x : Facts declare function checkM(x: { m: boolean }): void; ->checkM : (x: { m: boolean;}) => void +>checkM : (x: { m: boolean; }) => void >x : { m: boolean; } >m : boolean diff --git a/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=true).types b/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=true).types index 60a1e45a330a6..01ded514ad792 100644 --- a/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=true).types +++ b/tests/baselines/reference/typeSatisfaction_propertyValueConformance1(nopropertyaccessfromindexsignature=true).types @@ -10,7 +10,7 @@ declare function checkTruths(x: Facts): void; >x : Facts declare function checkM(x: { m: boolean }): void; ->checkM : (x: { m: boolean;}) => void +>checkM : (x: { m: boolean; }) => void >x : { m: boolean; } >m : boolean diff --git a/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=false).types b/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=false).types index 30cd97fb4be63..25235f5b4d720 100644 --- a/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=false).types +++ b/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=false).types @@ -10,7 +10,7 @@ declare function checkTruths(x: Facts): void; >x : Facts declare function checkM(x: { m: boolean }): void; ->checkM : (x: { m: boolean;}) => void +>checkM : (x: { m: boolean; }) => void >x : { m: boolean; } >m : boolean diff --git a/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=true).types b/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=true).types index 30cd97fb4be63..25235f5b4d720 100644 --- a/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=true).types +++ b/tests/baselines/reference/typeSatisfaction_propertyValueConformance2(nouncheckedindexedaccess=true).types @@ -10,7 +10,7 @@ declare function checkTruths(x: Facts): void; >x : Facts declare function checkM(x: { m: boolean }): void; ->checkM : (x: { m: boolean;}) => void +>checkM : (x: { m: boolean; }) => void >x : { m: boolean; } >m : boolean diff --git a/tests/baselines/reference/typeofObjectInference.types b/tests/baselines/reference/typeofObjectInference.types index 0450fa3c98772..9886cf769539e 100644 --- a/tests/baselines/reference/typeofObjectInference.types +++ b/tests/baselines/reference/typeofObjectInference.types @@ -6,8 +6,8 @@ let val = 1 >1 : 1 function decorateA(fn: (first: {value: typeof val}) => O) { ->decorateA : (fn: (first: { value: typeof val;}) => O) => () => O ->fn : (first: { value: typeof val;}) => O +>decorateA : (fn: (first: { value: typeof val; }) => O) => () => O +>fn : (first: { value: typeof val; }) => O >first : { value: typeof val; } >value : number >val : number @@ -49,8 +49,8 @@ let b = decorateB((value) => 5) >5 : 5 function decorateC(fn: (first: {value: number}) => O) { ->decorateC : (fn: (first: { value: number;}) => O) => () => O ->fn : (first: { value: number;}) => O +>decorateC : (fn: (first: { value: number; }) => O) => () => O +>fn : (first: { value: number; }) => O >first : { value: number; } >value : number diff --git a/tests/baselines/reference/typeofThis.types b/tests/baselines/reference/typeofThis.types index d2c4737d42318..9718d431cdd4d 100644 --- a/tests/baselines/reference/typeofThis.types +++ b/tests/baselines/reference/typeofThis.types @@ -83,7 +83,7 @@ function Test2() { } function Test3(this: { no: number }) { ->Test3 : (this: { no: number;}) => void +>Test3 : (this: { no: number; }) => void >this : { no: number; } >no : number @@ -96,7 +96,7 @@ function Test3(this: { no: number }) { } function Test4(this: { no: number } | undefined) { ->Test4 : (this: { no: number;} | undefined) => void +>Test4 : (this: { no: number; } | undefined) => void >this : { no: number; } | undefined >no : number diff --git a/tests/baselines/reference/undeclaredModuleError.types b/tests/baselines/reference/undeclaredModuleError.types index 4154ca826dfae..c64f33031dc24 100644 --- a/tests/baselines/reference/undeclaredModuleError.types +++ b/tests/baselines/reference/undeclaredModuleError.types @@ -5,13 +5,13 @@ import fs = require('fs'); >fs : any function readdir(path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void ) {} ->readdir : (path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats;}[]) => void) => void +>readdir : (path: string, accept: (stat: fs.Stats, name: string) => boolean, callback: (error: Error, results: { name: string; stat: fs.Stats; }[]) => void) => void >path : string >accept : (stat: fs.Stats, name: string) => boolean >stat : fs.Stats >fs : any >name : string ->callback : (error: Error, results: { name: string; stat: fs.Stats;}[]) => void +>callback : (error: Error, results: { name: string; stat: fs.Stats; }[]) => void >error : Error >results : { name: string; stat: fs.Stats; }[] >name : string diff --git a/tests/baselines/reference/undefinedArgumentInference.types b/tests/baselines/reference/undefinedArgumentInference.types index a4d3e707c3126..9e1abc1f7af5b 100644 --- a/tests/baselines/reference/undefinedArgumentInference.types +++ b/tests/baselines/reference/undefinedArgumentInference.types @@ -2,7 +2,7 @@ === undefinedArgumentInference.ts === function foo1(f1: { x: T; y: T }): T { ->foo1 : (f1: { x: T; y: T;}) => T +>foo1 : (f1: { x: T; y: T; }) => T >f1 : { x: T; y: T; } >x : T >y : T diff --git a/tests/baselines/reference/unionAndIntersectionInference2.types b/tests/baselines/reference/unionAndIntersectionInference2.types index 8340670ba45bc..514e34cc8ca15 100644 --- a/tests/baselines/reference/unionAndIntersectionInference2.types +++ b/tests/baselines/reference/unionAndIntersectionInference2.types @@ -47,7 +47,7 @@ f1(e1); // number | boolean >e1 : string | number | boolean declare function f2(x: T & { name: string }): T; ->f2 : (x: T & { name: string;}) => T +>f2 : (x: T & { name: string; }) => T >x : T & { name: string; } >name : string diff --git a/tests/baselines/reference/unionErrorMessageOnMatchingDiscriminant.types b/tests/baselines/reference/unionErrorMessageOnMatchingDiscriminant.types index 2f9cff48db307..e5688ceb57480 100644 --- a/tests/baselines/reference/unionErrorMessageOnMatchingDiscriminant.types +++ b/tests/baselines/reference/unionErrorMessageOnMatchingDiscriminant.types @@ -2,7 +2,7 @@ === unionErrorMessageOnMatchingDiscriminant.ts === type A = { ->A : { type: 'a'; data: { a: string;}; } +>A : { type: 'a'; data: { a: string; }; } type: 'a', >type : "a" diff --git a/tests/baselines/reference/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.types b/tests/baselines/reference/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.types index ebc2f6b0305f0..41955c565bcae 100644 --- a/tests/baselines/reference/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.types +++ b/tests/baselines/reference/unionExcessPropertyCheckNoApparentPropTypeMismatchErrors.types @@ -11,9 +11,9 @@ interface INumberDictionary { } declare function forEach(from: IStringDictionary | INumberDictionary, callback: (entry: { key: any; value: T; }, remove: () => void) => any); ->forEach : (from: IStringDictionary | INumberDictionary, callback: (entry: { key: any; value: T;}, remove: () => void) => any) => any +>forEach : (from: IStringDictionary | INumberDictionary, callback: (entry: { key: any; value: T; }, remove: () => void) => any) => any >from : IStringDictionary | INumberDictionary ->callback : (entry: { key: any; value: T;}, remove: () => void) => any +>callback : (entry: { key: any; value: T; }, remove: () => void) => any >entry : { key: any; value: T; } >key : any >value : T diff --git a/tests/baselines/reference/unionTypeReduction2.types b/tests/baselines/reference/unionTypeReduction2.types index 269b8f5ca6faa..0a82f66161b41 100644 --- a/tests/baselines/reference/unionTypeReduction2.types +++ b/tests/baselines/reference/unionTypeReduction2.types @@ -2,7 +2,7 @@ === unionTypeReduction2.ts === function f1(x: { f(): void }, y: { f(x?: string): void }) { ->f1 : (x: { f(): void;}, y: { f(x?: string): void; }) => void +>f1 : (x: { f(): void; }, y: { f(x?: string): void; }) => void >x : { f(): void; } >f : () => void >y : { f(x?: string): void; } diff --git a/tests/baselines/reference/unionTypeWithIndexSignature.types b/tests/baselines/reference/unionTypeWithIndexSignature.types index 1a9b81b2a9286..4884610a3cd36 100644 --- a/tests/baselines/reference/unionTypeWithIndexSignature.types +++ b/tests/baselines/reference/unionTypeWithIndexSignature.types @@ -2,7 +2,7 @@ === unionTypeWithIndexSignature.ts === type Two = { foo: { bar: true }, baz: true } | { [s: string]: string }; ->Two : { foo: { bar: true;}; baz: true; } | { [s: string]: string; } +>Two : { foo: { bar: true; }; baz: true; } | { [s: string]: string; } >foo : { bar: true; } >bar : true >true : true diff --git a/tests/baselines/reference/uniqueSymbols.types b/tests/baselines/reference/uniqueSymbols.types index 37e1d29fcc38f..047d6409871ab 100644 --- a/tests/baselines/reference/uniqueSymbols.types +++ b/tests/baselines/reference/uniqueSymbols.types @@ -333,7 +333,7 @@ const constInitToIReadonlyTypeWithIndexedAccess: I["readonlyType"] = i.readonlyT // type literals type L = { ->L : { readonly readonlyType: unique symbol; nested: { readonly readonlyNestedType: unique symbol;}; } +>L : { readonly readonlyType: unique symbol; nested: { readonly readonlyNestedType: unique symbol; }; } readonly readonlyType: unique symbol; >readonlyType : unique symbol diff --git a/tests/baselines/reference/uniqueSymbolsDeclarations.types b/tests/baselines/reference/uniqueSymbolsDeclarations.types index b22c81175916e..f9bfec5d551d4 100644 --- a/tests/baselines/reference/uniqueSymbolsDeclarations.types +++ b/tests/baselines/reference/uniqueSymbolsDeclarations.types @@ -326,7 +326,7 @@ const constInitToIReadonlyTypeWithIndexedAccess: I["readonlyType"] = i.readonlyT // type literals type L = { ->L : { readonly readonlyType: unique symbol; nested: { readonly readonlyNestedType: unique symbol;}; } +>L : { readonly readonlyType: unique symbol; nested: { readonly readonlyNestedType: unique symbol; }; } readonly readonlyType: unique symbol; >readonlyType : unique symbol diff --git a/tests/baselines/reference/unknownType2.types b/tests/baselines/reference/unknownType2.types index f87ad3a2c0616..cc9c8dd8723cf 100644 --- a/tests/baselines/reference/unknownType2.types +++ b/tests/baselines/reference/unknownType2.types @@ -520,7 +520,7 @@ function switchTestLiterals(x: unknown) { } function switchTestObjects(x: unknown, y: () => void, z: { prop: number }) { ->switchTestObjects : (x: unknown, y: () => void, z: { prop: number;}) => void +>switchTestObjects : (x: unknown, y: () => void, z: { prop: number; }) => void >x : unknown >y : () => void >z : { prop: number; } diff --git a/tests/baselines/reference/varArgParamTypeCheck.types b/tests/baselines/reference/varArgParamTypeCheck.types index b2c5c3081f125..b58e826f4cf04 100644 --- a/tests/baselines/reference/varArgParamTypeCheck.types +++ b/tests/baselines/reference/varArgParamTypeCheck.types @@ -2,7 +2,7 @@ === varArgParamTypeCheck.ts === function sequence(...sequences:{():void;}[]) { ->sequence : (...sequences: { (): void;}[]) => void +>sequence : (...sequences: { (): void; }[]) => void >sequences : (() => void)[] } diff --git a/tests/baselines/reference/vardecl.types b/tests/baselines/reference/vardecl.types index 1703a6fed1d9a..cae6ffefebd43 100644 --- a/tests/baselines/reference/vardecl.types +++ b/tests/baselines/reference/vardecl.types @@ -73,10 +73,10 @@ var c : { } var d: { ->d : { foo?(): { x: number;}; } +>d : { foo?(): { x: number; }; } foo? (): { ->foo : () => { x: number;} +>foo : () => { x: number; } x: number; >x : number @@ -85,10 +85,10 @@ var d: { } var d3: { ->d3 : { foo(): { x: number; y: number;}; } +>d3 : { foo(): { x: number; y: number; }; } foo(): { ->foo : () => { x: number; y: number;} +>foo : () => { x: number; y: number; } x: number; >x : number @@ -100,10 +100,10 @@ var d3: { } var d2: { ->d2 : { foo(): { x: number;}; } +>d2 : { foo(): { x: number; }; } foo (): { ->foo : () => { x: number;} +>foo : () => { x: number; } x: number; >x : number @@ -123,10 +123,10 @@ var n4: { }[]; var d4: { ->d4 : { foo(n: string, x: { x: number; y: number;}): { x: number; y: number;}; } +>d4 : { foo(n: string, x: { x: number; y: number; }): { x: number; y: number; }; } foo(n: string, x: { x: number; y: number; }): { ->foo : (n: string, x: { x: number; y: number;}) => { x: number; y: number;} +>foo : (n: string, x: { x: number; y: number; }) => { x: number; y: number; } >n : string >x : { x: number; y: number; } >x : number diff --git a/tests/baselines/reference/variadicTuples1.types b/tests/baselines/reference/variadicTuples1.types index f41a817d57e00..5b9e6b325539d 100644 --- a/tests/baselines/reference/variadicTuples1.types +++ b/tests/baselines/reference/variadicTuples1.types @@ -1386,13 +1386,13 @@ const b = a.bind("", 1); // Desc<[boolean], object> // Repro from #39607 declare function getUser(id: string, options?: { x?: string }): string; ->getUser : (id: string, options?: { x?: string;}) => string +>getUser : (id: string, options?: { x?: string; }) => string >id : string >options : { x?: string | undefined; } | undefined >x : string | undefined declare function getOrgUser(id: string, orgId: number, options?: { y?: number, z?: boolean }): void; ->getOrgUser : (id: string, orgId: number, options?: { y?: number; z?: boolean;}) => void +>getOrgUser : (id: string, orgId: number, options?: { y?: number; z?: boolean; }) => void >id : string >orgId : number >options : { y?: number | undefined; z?: boolean | undefined; } | undefined diff --git a/tests/baselines/reference/vueLikeDataAndPropsInference.types b/tests/baselines/reference/vueLikeDataAndPropsInference.types index 71b786625cfb9..e1c78ef727ea9 100644 --- a/tests/baselines/reference/vueLikeDataAndPropsInference.types +++ b/tests/baselines/reference/vueLikeDataAndPropsInference.types @@ -54,7 +54,7 @@ declare function test(fn: Options): void; test({ >test({ props: { foo: '' }, data(): { bar: boolean } { return { bar: true } }, watch: { foo(newVal: string, oldVal: string): void { this.bar = false } }}) : void >test : { (fn: ThisTypedOptions): void; (fn: Options<(this: Instance) => object, {}>): void; } ->{ props: { foo: '' }, data(): { bar: boolean } { return { bar: true } }, watch: { foo(newVal: string, oldVal: string): void { this.bar = false } }} : { props: { foo: string; }; data(this: Readonly<{ foo: string; }> & Instance): { bar: boolean;}; watch: { foo(newVal: string, oldVal: string): void; }; } +>{ props: { foo: '' }, data(): { bar: boolean } { return { bar: true } }, watch: { foo(newVal: string, oldVal: string): void { this.bar = false } }} : { props: { foo: string; }; data(this: Readonly<{ foo: string; }> & Instance): { bar: boolean; }; watch: { foo(newVal: string, oldVal: string): void; }; } props: { >props : { foo: string; } @@ -67,7 +67,7 @@ test({ }, data(): { bar: boolean } { ->data : (this: Readonly<{ foo: string; }> & Instance) => { bar: boolean;} +>data : (this: Readonly<{ foo: string; }> & Instance) => { bar: boolean; } >bar : boolean return { diff --git a/tests/baselines/reference/vueLikeDataAndPropsInference2.types b/tests/baselines/reference/vueLikeDataAndPropsInference2.types index 2ec90ed7c132a..857633bb875d1 100644 --- a/tests/baselines/reference/vueLikeDataAndPropsInference2.types +++ b/tests/baselines/reference/vueLikeDataAndPropsInference2.types @@ -55,7 +55,7 @@ declare function test(fn: Options): void; test({ >test({ props: { foo: '' }, data(): { bar: boolean } { return { bar: true } }, watch: { foo(newVal: string, oldVal: string): void { this.bar = false } }}) : void >test : { (fn: ThisTypedOptions): void; (fn: Options object), PropsDefinition>>): void; } ->{ props: { foo: '' }, data(): { bar: boolean } { return { bar: true } }, watch: { foo(newVal: string, oldVal: string): void { this.bar = false } }} : { props: { foo: string; }; data(this: Readonly<{ foo: string; }> & Instance): { bar: boolean;}; watch: { foo(newVal: string, oldVal: string): void; }; } +>{ props: { foo: '' }, data(): { bar: boolean } { return { bar: true } }, watch: { foo(newVal: string, oldVal: string): void { this.bar = false } }} : { props: { foo: string; }; data(this: Readonly<{ foo: string; }> & Instance): { bar: boolean; }; watch: { foo(newVal: string, oldVal: string): void; }; } props: { >props : { foo: string; } @@ -68,7 +68,7 @@ test({ }, data(): { bar: boolean } { ->data : (this: Readonly<{ foo: string; }> & Instance) => { bar: boolean;} +>data : (this: Readonly<{ foo: string; }> & Instance) => { bar: boolean; } >bar : boolean return { diff --git a/tests/baselines/reference/weakType.types b/tests/baselines/reference/weakType.types index 861b1daa591a5..5d788ea781373 100644 --- a/tests/baselines/reference/weakType.types +++ b/tests/baselines/reference/weakType.types @@ -86,7 +86,7 @@ type ChangeOptions = ConfigurableStartEnd & InsertOptions; >ChangeOptions : ConfigurableStart & ConfigurableEnd & InsertOptions function del(options: ConfigurableStartEnd = {}, ->del : (options?: ConfigurableStartEnd, error?: { error?: number;}) => void +>del : (options?: ConfigurableStartEnd, error?: { error?: number; }) => void >options : ConfigurableStartEnd >{} : {} @@ -136,7 +136,7 @@ type Spoiler = { nope?: string } >nope : string type Weak = { ->Weak : { a?: number; properties?: { b?: number;}; } +>Weak : { a?: number; properties?: { b?: number; }; } a?: number >a : number @@ -149,7 +149,7 @@ type Weak = { } } declare let propertiesWrong: { ->propertiesWrong : { properties: { wrong: string;}; } +>propertiesWrong : { properties: { wrong: string; }; } properties: { >properties : { wrong: string; } diff --git a/tests/baselines/reference/widenToAny1.types b/tests/baselines/reference/widenToAny1.types index 892feb9260def..7fe2333316293 100644 --- a/tests/baselines/reference/widenToAny1.types +++ b/tests/baselines/reference/widenToAny1.types @@ -2,7 +2,7 @@ === widenToAny1.ts === function foo1(f1: { x: T; y: T }): T { ->foo1 : (f1: { x: T; y: T;}) => T +>foo1 : (f1: { x: T; y: T; }) => T >f1 : { x: T; y: T; } >x : T >y : T diff --git a/tests/cases/compiler/declarationEmitReusesLambdaParameterNodes.ts b/tests/cases/compiler/declarationEmitReusesLambdaParameterNodes.ts new file mode 100644 index 0000000000000..58fe2316bf97f --- /dev/null +++ b/tests/cases/compiler/declarationEmitReusesLambdaParameterNodes.ts @@ -0,0 +1,12 @@ +// @strict: true +// @declaration: true +// @module: nodenext +// @filename: node_modules/react-select/index.d.ts +export type Whatever = {x: string, y: number}; +export type Props = Omit & Partial & T; + +// @filename: index.ts +import { Props } from "react-select"; + +export const CustomSelect1 = (x: Props

>props : P >computed : ComputedOf diff --git a/tests/baselines/reference/mappedTypeModifiers.types b/tests/baselines/reference/mappedTypeModifiers.types index 02623db4bf35d..c716dae8c14ce 100644 --- a/tests/baselines/reference/mappedTypeModifiers.types +++ b/tests/baselines/reference/mappedTypeModifiers.types @@ -107,7 +107,7 @@ type Boxified = { [P in keyof T]: { x: T[P] } }; >x : T[P] type B = { a: { x: number }, b: { x: string } }; ->B : { a: { x: number;}; b: { x: string;}; } +>B : { a: { x: number; }; b: { x: string; }; } >a : { x: number; } >x : number >b : { x: string; } @@ -121,7 +121,7 @@ type BP = { a?: { x: number }, b?: { x: string } }; >x : string type BR = { readonly a: { x: number }, readonly b: { x: string } }; ->BR : { readonly a: { x: number;}; readonly b: { x: string;}; } +>BR : { readonly a: { x: number; }; readonly b: { x: string; }; } >a : { x: number; } >x : number >b : { x: string; } diff --git a/tests/baselines/reference/mappedTypes4.types b/tests/baselines/reference/mappedTypes4.types index d897a9ac17103..c0f49a10d7094 100644 --- a/tests/baselines/reference/mappedTypes4.types +++ b/tests/baselines/reference/mappedTypes4.types @@ -112,7 +112,7 @@ type DeepReadonly = { }; type Foo = { ->Foo : { x: number; y: { a: string; b: number;}; z: boolean; } +>Foo : { x: number; y: { a: string; b: number; }; z: boolean; } x: number; >x : number @@ -128,7 +128,7 @@ type Foo = { }; type DeepReadonlyFoo = { ->DeepReadonlyFoo : { readonly x: number; readonly y: { readonly a: string; readonly b: number;}; readonly z: boolean; } +>DeepReadonlyFoo : { readonly x: number; readonly y: { readonly a: string; readonly b: number; }; readonly z: boolean; } readonly x: number; >x : number diff --git a/tests/baselines/reference/mixinAccessModifiers.types b/tests/baselines/reference/mixinAccessModifiers.types index c846e81fe5a5c..86097054f2979 100644 --- a/tests/baselines/reference/mixinAccessModifiers.types +++ b/tests/baselines/reference/mixinAccessModifiers.types @@ -347,7 +347,7 @@ function f7(x: ProtectedGeneric<{}> & ProtectedGeneric<{}>) { } function f8(x: ProtectedGeneric<{a: void;}> & ProtectedGeneric2<{a:void;b:void;}>) { ->f8 : (x: ProtectedGeneric<{ a: void;}> & ProtectedGeneric2<{ a: void; b: void;}>) => void +>f8 : (x: ProtectedGeneric<{ a: void; }> & ProtectedGeneric2<{ a: void; b: void; }>) => void >x : never >a : void >a : void @@ -367,7 +367,7 @@ function f8(x: ProtectedGeneric<{a: void;}> & ProtectedGeneric2<{a:void;b:void;} } function f9(x: ProtectedGeneric<{a: void;}> & ProtectedGeneric<{a:void;b:void;}>) { ->f9 : (x: ProtectedGeneric<{ a: void;}> & ProtectedGeneric<{ a: void; b: void;}>) => void +>f9 : (x: ProtectedGeneric<{ a: void; }> & ProtectedGeneric<{ a: void; b: void; }>) => void >x : ProtectedGeneric<{ a: void; }> & ProtectedGeneric<{ a: void; b: void; }> >a : void >a : void diff --git a/tests/baselines/reference/moduleAliasAsFunctionArgument.types b/tests/baselines/reference/moduleAliasAsFunctionArgument.types index 6e858346019db..4f9f176de8219 100644 --- a/tests/baselines/reference/moduleAliasAsFunctionArgument.types +++ b/tests/baselines/reference/moduleAliasAsFunctionArgument.types @@ -6,7 +6,7 @@ import a = require('moduleAliasAsFunctionArgument_0'); >a : typeof a function fn(arg: { x: number }) { ->fn : (arg: { x: number;}) => void +>fn : (arg: { x: number; }) => void >arg : { x: number; } >x : number } diff --git a/tests/baselines/reference/multiLineErrors.types b/tests/baselines/reference/multiLineErrors.types index 3b0c4d7f0b5bd..9dc84d54c2075 100644 --- a/tests/baselines/reference/multiLineErrors.types +++ b/tests/baselines/reference/multiLineErrors.types @@ -6,7 +6,7 @@ var t = 32; >32 : 32 function noReturn(): { ->noReturn : () => { n: string; y: number;} +>noReturn : () => { n: string; y: number; } n: string; >n : string diff --git a/tests/baselines/reference/multiline.types b/tests/baselines/reference/multiline.types index d2b47173e076f..5d123cf3a28df 100644 --- a/tests/baselines/reference/multiline.types +++ b/tests/baselines/reference/multiline.types @@ -37,7 +37,7 @@ import * as React from "react"; >React : typeof React export function MyComponent(props: { foo: string }) { ->MyComponent : (props: { foo: string;}) => JSX.Element +>MyComponent : (props: { foo: string; }) => JSX.Element >props : { foo: string; } >foo : string diff --git a/tests/baselines/reference/multipleInferenceContexts.types b/tests/baselines/reference/multipleInferenceContexts.types index e017122005564..30434ef960b49 100644 --- a/tests/baselines/reference/multipleInferenceContexts.types +++ b/tests/baselines/reference/multipleInferenceContexts.types @@ -22,7 +22,7 @@ interface Instance { } declare var Moon: { ->Moon : (options?: ConstructorOptions | undefined) => Instance +>Moon : (options?: ConstructorOptions) => Instance (options?: ConstructorOptions): Instance; >options : ConstructorOptions | undefined diff --git a/tests/baselines/reference/narrowingConstrainedTypeVariable.types b/tests/baselines/reference/narrowingConstrainedTypeVariable.types index 5552cf4b69d04..1342a335aa229 100644 --- a/tests/baselines/reference/narrowingConstrainedTypeVariable.types +++ b/tests/baselines/reference/narrowingConstrainedTypeVariable.types @@ -54,7 +54,7 @@ class E { x: string | undefined } >x : string | undefined function f3(v: T | { x: string }) { ->f3 : (v: T | { x: string;}) => void +>f3 : (v: T | { x: string; }) => void >v : T | { x: string; } >x : string diff --git a/tests/baselines/reference/narrowingDestructuring.types b/tests/baselines/reference/narrowingDestructuring.types index ed0001633944e..5e9d72dde8555 100644 --- a/tests/baselines/reference/narrowingDestructuring.types +++ b/tests/baselines/reference/narrowingDestructuring.types @@ -41,7 +41,7 @@ function func(value: T) { } type Z = { kind: "f", f: { a: number, b: string, c: number } } ->Z : { kind: "f"; f: { a: number; b: string; c: number;}; } | { kind: "g"; g: { a: string; b: number; c: string;}; } +>Z : { kind: "f"; f: { a: number; b: string; c: number; }; } | { kind: "g"; g: { a: string; b: number; c: string; }; } >kind : "f" >f : { a: number; b: string; c: number; } >a : number diff --git a/tests/baselines/reference/narrowingTypeofDiscriminant.types b/tests/baselines/reference/narrowingTypeofDiscriminant.types index d53a8c6201f8e..1ae648764521f 100644 --- a/tests/baselines/reference/narrowingTypeofDiscriminant.types +++ b/tests/baselines/reference/narrowingTypeofDiscriminant.types @@ -2,7 +2,7 @@ === narrowingTypeofDiscriminant.ts === function f1(obj: { kind: 'a', data: string } | { kind: 1, data: number }) { ->f1 : (obj: { kind: 'a'; data: string;} | { kind: 1; data: number;}) => void +>f1 : (obj: { kind: 'a'; data: string; } | { kind: 1; data: number; }) => void >obj : { kind: 'a'; data: string; } | { kind: 1; data: number; } >kind : "a" >data : string @@ -27,7 +27,7 @@ function f1(obj: { kind: 'a', data: string } | { kind: 1, data: number }) { } function f2(obj: { kind: 'a', data: string } | { kind: 1, data: number } | undefined) { ->f2 : (obj: { kind: 'a'; data: string;} | { kind: 1; data: number;} | undefined) => void +>f2 : (obj: { kind: 'a'; data: string; } | { kind: 1; data: number; } | undefined) => void >obj : { kind: 'a'; data: string; } | { kind: 1; data: number; } | undefined >kind : "a" >data : string diff --git a/tests/baselines/reference/narrowingTypeofFunction.types b/tests/baselines/reference/narrowingTypeofFunction.types index a617ee86153f0..29dd3b328efca 100644 --- a/tests/baselines/reference/narrowingTypeofFunction.types +++ b/tests/baselines/reference/narrowingTypeofFunction.types @@ -46,7 +46,7 @@ function f2(x: (T & F) | T & string) { } function f3(x: { _foo: number } & number) { ->f3 : (x: { _foo: number;} & number) => void +>f3 : (x: { _foo: number; } & number) => void >x : { _foo: number; } & number >_foo : number diff --git a/tests/baselines/reference/narrowingTypeofObject.types b/tests/baselines/reference/narrowingTypeofObject.types index 5d63781938b88..68856ab98adfd 100644 --- a/tests/baselines/reference/narrowingTypeofObject.types +++ b/tests/baselines/reference/narrowingTypeofObject.types @@ -4,7 +4,7 @@ interface F { (): string } function test(x: number & { _foo: string }) { ->test : (x: number & { _foo: string;}) => void +>test : (x: number & { _foo: string; }) => void >x : number & { _foo: string; } >_foo : string @@ -20,7 +20,7 @@ function test(x: number & { _foo: string }) { } function f1(x: F & { foo: number }) { ->f1 : (x: F & { foo: number;}) => void +>f1 : (x: F & { foo: number; }) => void >x : F & { foo: number; } >foo : number diff --git a/tests/baselines/reference/narrowingTypeofUndefined1.types b/tests/baselines/reference/narrowingTypeofUndefined1.types index 679f10ed0958d..fe100b2fb3d0c 100644 --- a/tests/baselines/reference/narrowingTypeofUndefined1.types +++ b/tests/baselines/reference/narrowingTypeofUndefined1.types @@ -2,7 +2,7 @@ === narrowingTypeofUndefined1.ts === declare const a: { error: { prop: string }, result: undefined } | { error: undefined, result: { prop: number } } ->a : { error: { prop: string;}; result: undefined; } | { error: undefined; result: { prop: number;}; } +>a : { error: { prop: string; }; result: undefined; } | { error: undefined; result: { prop: number; }; } >error : { prop: string; } >prop : string >result : undefined diff --git a/tests/baselines/reference/narrowingUnionToUnion.types b/tests/baselines/reference/narrowingUnionToUnion.types index 0371411ea747f..d3694e454a4d6 100644 --- a/tests/baselines/reference/narrowingUnionToUnion.types +++ b/tests/baselines/reference/narrowingUnionToUnion.types @@ -59,7 +59,7 @@ declare function isA(obj: unknown): obj is { a: false } | { b: 0 }; >b : 0 function fx4(obj: { b: number }) { ->fx4 : (obj: { b: number;}) => void +>fx4 : (obj: { b: number; }) => void >obj : { b: number; } >b : number diff --git a/tests/baselines/reference/nestedExcessPropertyChecking.types b/tests/baselines/reference/nestedExcessPropertyChecking.types index abed36ba6fa06..7de187ea2c3dc 100644 --- a/tests/baselines/reference/nestedExcessPropertyChecking.types +++ b/tests/baselines/reference/nestedExcessPropertyChecking.types @@ -2,17 +2,17 @@ === nestedExcessPropertyChecking.ts === type A1 = { x: { a?: string } }; ->A1 : { x: { a?: string;}; } +>A1 : { x: { a?: string; }; } >x : { a?: string | undefined; } >a : string | undefined type B1 = { x: { b?: string } }; ->B1 : { x: { b?: string;}; } +>B1 : { x: { b?: string; }; } >x : { b?: string | undefined; } >b : string | undefined type C1 = { x: { c: string } }; ->C1 : { x: { c: string;}; } +>C1 : { x: { c: string; }; } >x : { c: string; } >c : string @@ -65,7 +65,7 @@ type OverridesInput = { } const foo1: Partial<{ something: any }> & { variables: { ->foo1 : Partial<{ something: any; }> & { variables: { overrides?: OverridesInput;} & Partial<{ overrides?: OverridesInput;}>; } +>foo1 : Partial<{ something: any; }> & { variables: { overrides?: OverridesInput; } & Partial<{ overrides?: OverridesInput; }>; } >something : any >variables : { overrides?: OverridesInput | undefined; } & Partial<{ overrides?: OverridesInput | undefined; }> @@ -111,10 +111,10 @@ const foo2: Unrelated & { variables: VariablesA & VariablesB } = { // Simplified repro from #52252 type T1 = { ->T1 : { primary: { __typename?: 'Feature';} & { colors: { light: number; dark: number; };}; } +>T1 : { primary: { __typename?: 'Feature'; } & { colors: { light: number; dark: number; }; }; } primary: { __typename?: 'Feature' } & { colors: { light: number, dark: number } }, ->primary : { __typename?: "Feature" | undefined; } & { colors: { light: number; dark: number;}; } +>primary : { __typename?: "Feature" | undefined; } & { colors: { light: number; dark: number; }; } >__typename : "Feature" | undefined >colors : { light: number; dark: number; } >light : number @@ -123,10 +123,10 @@ type T1 = { }; type T2 = { ->T2 : { primary: { __typename?: 'Feature';} & { colors: { light: number; };}; } +>T2 : { primary: { __typename?: 'Feature'; } & { colors: { light: number; }; }; } primary: { __typename?: 'Feature' } & { colors: { light: number } }, ->primary : { __typename?: "Feature" | undefined; } & { colors: { light: number;}; } +>primary : { __typename?: "Feature" | undefined; } & { colors: { light: number; }; } >__typename : "Feature" | undefined >colors : { light: number; } >light : number diff --git a/tests/baselines/reference/nestedTypeVariableInfersLiteral.types b/tests/baselines/reference/nestedTypeVariableInfersLiteral.types index 8a6b731287081..58d1ee291ca91 100644 --- a/tests/baselines/reference/nestedTypeVariableInfersLiteral.types +++ b/tests/baselines/reference/nestedTypeVariableInfersLiteral.types @@ -7,12 +7,12 @@ declare function direct(a: A | A[]): Record >a : A | A[] declare function nested(a: { fields: A }): Record ->nested : (a: { fields: A;}) => Record +>nested : (a: { fields: A; }) => Record >a : { fields: A; } >fields : A declare function nestedUnion(a: { fields: A | A[] }): Record ->nestedUnion : (a: { fields: A | A[];}) => Record +>nestedUnion : (a: { fields: A | A[]; }) => Record >a : { fields: A | A[]; } >fields : A | A[] @@ -57,7 +57,7 @@ const nestedUnionArray = nestedUnion({fields: ["z", "y"]}) >"y" : "y" declare function hasZField(arg: { z: string }): void ->hasZField : (arg: { z: string;}) => void +>hasZField : (arg: { z: string; }) => void >arg : { z: string; } >z : string diff --git a/tests/baselines/reference/neverAsDiscriminantType(strict=false).types b/tests/baselines/reference/neverAsDiscriminantType(strict=false).types index 65eecd6c64f48..6511b272dd0bc 100644 --- a/tests/baselines/reference/neverAsDiscriminantType(strict=false).types +++ b/tests/baselines/reference/neverAsDiscriminantType(strict=false).types @@ -153,7 +153,7 @@ export interface GatewayEvents { } function assertMessage(event: { a: 1 }) { } ->assertMessage : (event: { a: 1;}) => void +>assertMessage : (event: { a: 1; }) => void >event : { a: 1; } >a : 1 diff --git a/tests/baselines/reference/neverAsDiscriminantType(strict=true).types b/tests/baselines/reference/neverAsDiscriminantType(strict=true).types index 72521cdb8b6f5..e20cff8356d18 100644 --- a/tests/baselines/reference/neverAsDiscriminantType(strict=true).types +++ b/tests/baselines/reference/neverAsDiscriminantType(strict=true).types @@ -153,7 +153,7 @@ export interface GatewayEvents { } function assertMessage(event: { a: 1 }) { } ->assertMessage : (event: { a: 1;}) => void +>assertMessage : (event: { a: 1; }) => void >event : { a: 1; } >a : 1 diff --git a/tests/baselines/reference/neverReturningFunctions1.types b/tests/baselines/reference/neverReturningFunctions1.types index 50b9df518efa4..73baa98983661 100644 --- a/tests/baselines/reference/neverReturningFunctions1.types +++ b/tests/baselines/reference/neverReturningFunctions1.types @@ -330,7 +330,7 @@ function f30(x: string | number | undefined) { } function f31(x: { a: string | number }) { ->f31 : (x: { a: string | number;}) => void +>f31 : (x: { a: string | number; }) => void >x : { a: string | number; } >a : string | number diff --git a/tests/baselines/reference/neverTypeErrors1.types b/tests/baselines/reference/neverTypeErrors1.types index 30303f7a89268..d4bb134cffbd0 100644 --- a/tests/baselines/reference/neverTypeErrors1.types +++ b/tests/baselines/reference/neverTypeErrors1.types @@ -92,7 +92,7 @@ type Union = A & B; >Union : never function func(): { value: Union[] } { ->func : () => { value: Union[];} +>func : () => { value: Union[]; } >value : never[] return { diff --git a/tests/baselines/reference/neverTypeErrors2.types b/tests/baselines/reference/neverTypeErrors2.types index ddcb728af34a5..d88956bbf35ee 100644 --- a/tests/baselines/reference/neverTypeErrors2.types +++ b/tests/baselines/reference/neverTypeErrors2.types @@ -92,7 +92,7 @@ type Union = A & B; >Union : never function func(): { value: Union[] } { ->func : () => { value: Union[];} +>func : () => { value: Union[]; } >value : never[] return { diff --git a/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.types b/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.types index 91d51ace919de..cb74bd5ed2dcc 100644 --- a/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.types +++ b/tests/baselines/reference/noImplicitAnyDestructuringParameterDeclaration.types @@ -18,7 +18,7 @@ function f2([a = undefined], {b = null}, c = undefined, d = null) { // error >d : any } function f3([a]: [any], {b}: { b: any }, c: any, d: any) { ->f3 : ([a]: [any], { b }: { b: any;}, c: any, d: any) => void +>f3 : ([a]: [any], { b }: { b: any; }, c: any, d: any) => void >a : any >b : any >b : any @@ -26,7 +26,7 @@ function f3([a]: [any], {b}: { b: any }, c: any, d: any) { >d : any } function f4({b}: { b }, x: { b }) { // error in type instead ->f4 : ({ b }: { b;}, x: { b;}) => void +>f4 : ({ b }: { b; }, x: { b; }) => void >b : any >b : any >x : { b: any; } diff --git a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).types b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).types index fb98c821d00cd..50e64e53d4115 100644 --- a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).types +++ b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).types @@ -126,12 +126,12 @@ export const b = (null as any as import("pkg", [ {"resolution-mode": "import"} ] === /other4.ts === // Indirected attribute objecty-thing - not allowed type Attribute1 = { with: {"resolution-mode": "require"} }; ->Attribute1 : { with: { "resolution-mode": "require";}; } +>Attribute1 : { with: { "resolution-mode": "require"; }; } >with : { "resolution-mode": "require"; } >"resolution-mode" : "require" type Attribute2 = { with: {"resolution-mode": "import"} }; ->Attribute2 : { with: { "resolution-mode": "import";}; } +>Attribute2 : { with: { "resolution-mode": "import"; }; } >with : { "resolution-mode": "import"; } >"resolution-mode" : "import" diff --git a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).types b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).types index fb98c821d00cd..50e64e53d4115 100644 --- a/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).types +++ b/tests/baselines/reference/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).types @@ -126,12 +126,12 @@ export const b = (null as any as import("pkg", [ {"resolution-mode": "import"} ] === /other4.ts === // Indirected attribute objecty-thing - not allowed type Attribute1 = { with: {"resolution-mode": "require"} }; ->Attribute1 : { with: { "resolution-mode": "require";}; } +>Attribute1 : { with: { "resolution-mode": "require"; }; } >with : { "resolution-mode": "require"; } >"resolution-mode" : "require" type Attribute2 = { with: {"resolution-mode": "import"} }; ->Attribute2 : { with: { "resolution-mode": "import";}; } +>Attribute2 : { with: { "resolution-mode": "import"; }; } >with : { "resolution-mode": "import"; } >"resolution-mode" : "import" diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).types b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).types index 5e914a7c5ed02..72f68fbbd0759 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).types +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).types @@ -124,12 +124,12 @@ export const b = (null as any as import("pkg", [ {"resolution-mode": "import"} ] === /other4.ts === // Indirected assertion objecty-thing - not allowed type Asserts1 = { assert: {"resolution-mode": "require"} }; ->Asserts1 : { assert: { "resolution-mode": "require";}; } +>Asserts1 : { assert: { "resolution-mode": "require"; }; } >assert : { "resolution-mode": "require"; } >"resolution-mode" : "require" type Asserts2 = { assert: {"resolution-mode": "import"} }; ->Asserts2 : { assert: { "resolution-mode": "import";}; } +>Asserts2 : { assert: { "resolution-mode": "import"; }; } >assert : { "resolution-mode": "import"; } >"resolution-mode" : "import" diff --git a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).types b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).types index 5e914a7c5ed02..72f68fbbd0759 100644 --- a/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).types +++ b/tests/baselines/reference/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).types @@ -124,12 +124,12 @@ export const b = (null as any as import("pkg", [ {"resolution-mode": "import"} ] === /other4.ts === // Indirected assertion objecty-thing - not allowed type Asserts1 = { assert: {"resolution-mode": "require"} }; ->Asserts1 : { assert: { "resolution-mode": "require";}; } +>Asserts1 : { assert: { "resolution-mode": "require"; }; } >assert : { "resolution-mode": "require"; } >"resolution-mode" : "require" type Asserts2 = { assert: {"resolution-mode": "import"} }; ->Asserts2 : { assert: { "resolution-mode": "import";}; } +>Asserts2 : { assert: { "resolution-mode": "import"; }; } >assert : { "resolution-mode": "import"; } >"resolution-mode" : "import" diff --git a/tests/baselines/reference/nonInferrableTypePropagation2.types b/tests/baselines/reference/nonInferrableTypePropagation2.types index 6e7f14976a433..a2921abefc9be 100644 --- a/tests/baselines/reference/nonInferrableTypePropagation2.types +++ b/tests/baselines/reference/nonInferrableTypePropagation2.types @@ -31,7 +31,7 @@ interface Refinement { } declare const filter: { ->filter : { (refinement: Refinement): (as: readonly A[]) => readonly B[]; (predicate: Predicate): (bs: readonly B[]) => readonly B[]; (predicate: Predicate): (as: readonly A[]) => readonly A[]; } +>filter : { (refinement: Refinement): (as: ReadonlyArray) => ReadonlyArray; (predicate: Predicate): (bs: readonly B[]) => readonly B[]; (predicate: Predicate): (as: ReadonlyArray) => ReadonlyArray; } (refinement: Refinement): (as: ReadonlyArray) => ReadonlyArray >refinement : Refinement diff --git a/tests/baselines/reference/nonInstantiatedModule.types b/tests/baselines/reference/nonInstantiatedModule.types index a5d260ee8cb8e..8a5f45af7a231 100644 --- a/tests/baselines/reference/nonInstantiatedModule.types +++ b/tests/baselines/reference/nonInstantiatedModule.types @@ -77,8 +77,8 @@ var p: M2.Point; >M2 : any var p2: { Origin() : { x: number; y: number; } }; ->p2 : { Origin(): { x: number; y: number;}; } ->Origin : () => { x: number; y: number;} +>p2 : { Origin(): { x: number; y: number; }; } +>Origin : () => { x: number; y: number; } >x : number >y : number diff --git a/tests/baselines/reference/objectLitTargetTypeCallSite.types b/tests/baselines/reference/objectLitTargetTypeCallSite.types index 9306fd4e2b11d..1715b893231c4 100644 --- a/tests/baselines/reference/objectLitTargetTypeCallSite.types +++ b/tests/baselines/reference/objectLitTargetTypeCallSite.types @@ -2,7 +2,7 @@ === objectLitTargetTypeCallSite.ts === function process( x: {a:number; b:string;}) { ->process : (x: { a: number; b: string;}) => number +>process : (x: { a: number; b: string; }) => number >x : { a: number; b: string; } >a : number >b : string diff --git a/tests/baselines/reference/objectLiteralContextualTyping.types b/tests/baselines/reference/objectLiteralContextualTyping.types index f4660ad8863b0..9438580da2470 100644 --- a/tests/baselines/reference/objectLiteralContextualTyping.types +++ b/tests/baselines/reference/objectLiteralContextualTyping.types @@ -71,7 +71,7 @@ var w: number; >w : number declare function bar(param: { x?: T }): T; ->bar : (param: { x?: T;}) => T +>bar : (param: { x?: T; }) => T >param : { x?: T; } >x : T diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types index 2e198937cd484..195608a688eec 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types @@ -18,7 +18,7 @@ var person: { name: string; id: number } = { name, id }; >id : number function foo( obj:{ name: string }): void { }; ->foo : (obj: { name: string;}) => void +>foo : (obj: { name: string; }) => void >obj : { name: string; } >name : string @@ -38,7 +38,7 @@ function bar1(name: string, id: number) { return { name }; } >name : string function baz(name: string, id: number): { name: string; id: number } { return { name, id }; } ->baz : (name: string, id: number) => { name: string; id: number;} +>baz : (name: string, id: number) => { name: string; id: number; } >name : string >id : number >name : string diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types index 1a78c36dfb663..94f61adb39cdd 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types @@ -18,7 +18,7 @@ var person: { name: string; id: number } = { name, id }; >id : number function foo(obj: { name: string }): void { }; ->foo : (obj: { name: string;}) => void +>foo : (obj: { name: string; }) => void >obj : { name: string; } >name : string @@ -38,7 +38,7 @@ function bar1(name: string, id: number) { return { name }; } >name : string function baz(name: string, id: number): { name: string; id: number } { return { name, id }; } ->baz : (name: string, id: number) => { name: string; id: number;} +>baz : (name: string, id: number) => { name: string; id: number; } >name : string >id : number >name : string diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentError.types b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentError.types index 6bc9502a494fe..a7bedbe7e94d9 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentError.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentError.types @@ -23,7 +23,7 @@ var person1: { name, id }; // ok >id : any function foo(name: string, id: number): { id: string, name: number } { return { name, id }; } // error ->foo : (name: string, id: number) => { id: string; name: number;} +>foo : (name: string, id: number) => { id: string; name: number; } >name : string >id : number >id : string @@ -33,7 +33,7 @@ function foo(name: string, id: number): { id: string, name: number } { return { >id : number function bar(obj: { name: string; id: boolean }) { } ->bar : (obj: { name: string; id: boolean;}) => void +>bar : (obj: { name: string; id: boolean; }) => void >obj : { name: string; id: boolean; } >name : string >id : boolean diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.types b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.types index 21bf2328bd27f..02f082fe98d3d 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.types @@ -18,7 +18,7 @@ var person: { b: string; id: number } = { name, id }; // error >id : number function bar(name: string, id: number): { name: number, id: string } { return { name, id }; } // error ->bar : (name: string, id: number) => { name: number; id: string;} +>bar : (name: string, id: number) => { name: number; id: string; } >name : string >id : number >name : number @@ -28,7 +28,7 @@ function bar(name: string, id: number): { name: number, id: string } { return { >id : number function foo(name: string, id: number): { name: string, id: number } { return { name, id }; } // error ->foo : (name: string, id: number) => { name: string; id: number;} +>foo : (name: string, id: number) => { name: string; id: number; } >name : string >id : number >name : string diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types b/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types index 14ff1a5d3b86b..1af5e8ad7c279 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types @@ -16,7 +16,7 @@ var person = { name, id }; >id : number function foo(p: { name: string; id: number }) { } ->foo : (p: { name: string; id: number;}) => void +>foo : (p: { name: string; id: number; }) => void >p : { name: string; id: number; } >name : string >id : number diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument2.types b/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument2.types index 9cacfce6a94f6..68ce32813d588 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument2.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument2.types @@ -16,7 +16,7 @@ var person = { name, id }; >id : number function foo(p: { a: string; id: number }) { } ->foo : (p: { a: string; id: number;}) => void +>foo : (p: { a: string; id: number; }) => void >p : { a: string; id: number; } >a : string >id : number diff --git a/tests/baselines/reference/objectRest.types b/tests/baselines/reference/objectRest.types index 40b37d4fb5b56..4a5cb1987b42b 100644 --- a/tests/baselines/reference/objectRest.types +++ b/tests/baselines/reference/objectRest.types @@ -58,11 +58,11 @@ var { d: renamed, ...d } = o2; >o2 : { c: string; d: string; } let nestedrest: { x: number, n1: { y: number, n2: { z: number, n3: { n4: number } } }, rest: number, restrest: number }; ->nestedrest : { x: number; n1: { y: number; n2: { z: number; n3: { n4: number; }; };}; rest: number; restrest: number; } +>nestedrest : { x: number; n1: { y: number; n2: { z: number; n3: { n4: number; }; }; }; rest: number; restrest: number; } >x : number ->n1 : { y: number; n2: { z: number; n3: { n4: number; };}; } +>n1 : { y: number; n2: { z: number; n3: { n4: number; }; }; } >y : number ->n2 : { z: number; n3: { n4: number;}; } +>n2 : { z: number; n3: { n4: number; }; } >z : number >n3 : { n4: number; } >n4 : number @@ -81,7 +81,7 @@ var { x, n1: { y, n2: { z, n3: { ...nr } } }, ...restrest } = nestedrest; >nestedrest : { x: number; n1: { y: number; n2: { z: number; n3: { n4: number; }; }; }; rest: number; restrest: number; } let complex: { x: { ka, ki }, y: number }; ->complex : { x: { ka; ki;}; y: number; } +>complex : { x: { ka; ki; }; y: number; } >x : { ka: any; ki: any; } >ka : any >ki : any diff --git a/tests/baselines/reference/objectRestAssignment.types b/tests/baselines/reference/objectRestAssignment.types index 855eb366b51a9..6b907cd02514a 100644 --- a/tests/baselines/reference/objectRestAssignment.types +++ b/tests/baselines/reference/objectRestAssignment.types @@ -15,7 +15,7 @@ let rest: { }; >rest : {} let complex: { x: { ka, ki }, y: number }; ->complex : { x: { ka; ki;}; y: number; } +>complex : { x: { ka; ki; }; y: number; } >x : { ka: any; ki: any; } >ka : any >ki : any @@ -36,7 +36,7 @@ let complex: { x: { ka, ki }, y: number }; // should be: let overEmit: { a: { ka: string, x: string }[], b: { z: string, ki: string, ku: string }, ke: string, ko: string }; ->overEmit : { a: { ka: string; x: string;}[]; b: { z: string; ki: string; ku: string;}; ke: string; ko: string; } +>overEmit : { a: { ka: string; x: string; }[]; b: { z: string; ki: string; ku: string; }; ke: string; ko: string; } >a : { ka: string; x: string; }[] >ka : string >x : string diff --git a/tests/baselines/reference/objectRestBindingContextualInference.types b/tests/baselines/reference/objectRestBindingContextualInference.types index da614babdacad..7c7cf53be6ca8 100644 --- a/tests/baselines/reference/objectRestBindingContextualInference.types +++ b/tests/baselines/reference/objectRestBindingContextualInference.types @@ -19,7 +19,7 @@ type SetupImages = SetupImageRefs & { >SetupImages : SetupImages prepare: () => { type: K }; ->prepare : () => { type: K;} +>prepare : () => { type: K; } >type : K }; diff --git a/tests/baselines/reference/objectRestNegative.types b/tests/baselines/reference/objectRestNegative.types index e07673746fa4d..2f8f8037eaf6b 100644 --- a/tests/baselines/reference/objectRestNegative.types +++ b/tests/baselines/reference/objectRestNegative.types @@ -31,7 +31,7 @@ let notAssignable: { a: string }; function stillMustBeLast({ ...mustBeLast, a }: { a: number, b: string }): void { ->stillMustBeLast : ({ ...mustBeLast, a }: { a: number; b: string;}) => void +>stillMustBeLast : ({ ...mustBeLast, a }: { a: number; b: string; }) => void >mustBeLast : { b: string; } >a : number >a : number diff --git a/tests/baselines/reference/objectRestParameter.types b/tests/baselines/reference/objectRestParameter.types index 8054a9095a200..35d114d76b83e 100644 --- a/tests/baselines/reference/objectRestParameter.types +++ b/tests/baselines/reference/objectRestParameter.types @@ -2,7 +2,7 @@ === objectRestParameter.ts === function cloneAgain({ a, ...clone }: { a: number, b: string }): void { ->cloneAgain : ({ a, ...clone }: { a: number; b: string;}) => void +>cloneAgain : ({ a, ...clone }: { a: number; b: string; }) => void >a : number >clone : { b: string; } >a : number @@ -10,9 +10,9 @@ function cloneAgain({ a, ...clone }: { a: number, b: string }): void { } declare function suddenly(f: (a: { x: { z, ka }, y: string }) => void); ->suddenly : (f: (a: { x: { z; ka; }; y: string;}) => void) => any ->f : (a: { x: { z; ka; }; y: string;}) => void ->a : { x: { z; ka;}; y: string; } +>suddenly : (f: (a: { x: { z; ka; }; y: string; }) => void) => any +>f : (a: { x: { z; ka; }; y: string; }) => void +>a : { x: { z; ka; }; y: string; } >x : { z: any; ka: any; } >z : any >ka : any @@ -59,7 +59,7 @@ class C { >C : C m({ a, ...clone }: { a: number, b: string}): void { ->m : ({ a, ...clone }: { a: number; b: string;}) => void +>m : ({ a, ...clone }: { a: number; b: string; }) => void >a : number >clone : { b: string; } >a : number diff --git a/tests/baselines/reference/objectRestParameterES5.types b/tests/baselines/reference/objectRestParameterES5.types index 6d6494fc7025c..eda1c993c107c 100644 --- a/tests/baselines/reference/objectRestParameterES5.types +++ b/tests/baselines/reference/objectRestParameterES5.types @@ -2,7 +2,7 @@ === objectRestParameterES5.ts === function cloneAgain({ a, ...clone }: { a: number, b: string }): void { ->cloneAgain : ({ a, ...clone }: { a: number; b: string;}) => void +>cloneAgain : ({ a, ...clone }: { a: number; b: string; }) => void >a : number >clone : { b: string; } >a : number @@ -10,9 +10,9 @@ function cloneAgain({ a, ...clone }: { a: number, b: string }): void { } declare function suddenly(f: (a: { x: { z, ka }, y: string }) => void); ->suddenly : (f: (a: { x: { z; ka; }; y: string;}) => void) => any ->f : (a: { x: { z; ka; }; y: string;}) => void ->a : { x: { z; ka;}; y: string; } +>suddenly : (f: (a: { x: { z; ka; }; y: string; }) => void) => any +>f : (a: { x: { z; ka; }; y: string; }) => void +>a : { x: { z; ka; }; y: string; } >x : { z: any; ka: any; } >z : any >ka : any @@ -59,7 +59,7 @@ class C { >C : C m({ a, ...clone }: { a: number, b: string}): void { ->m : ({ a, ...clone }: { a: number; b: string;}) => void +>m : ({ a, ...clone }: { a: number; b: string; }) => void >a : number >clone : { b: string; } >a : number diff --git a/tests/baselines/reference/objectSpread.types b/tests/baselines/reference/objectSpread.types index bdbb500e22704..2056132471e50 100644 --- a/tests/baselines/reference/objectSpread.types +++ b/tests/baselines/reference/objectSpread.types @@ -125,7 +125,7 @@ let combinedNestedChangeType: { a: number, b: boolean, c: number } = >1 : 1 let propertyNested: { a: { a: number, b: string } } = ->propertyNested : { a: { a: number; b: string;}; } +>propertyNested : { a: { a: number; b: string; }; } >a : { a: number; b: string; } >a : number >b : string @@ -176,7 +176,7 @@ type Header = { head: string, body: string, authToken: string } >authToken : string function from16326(this: { header: Header }, header: Header, authToken: string): Header { ->from16326 : (this: { header: Header;}, header: Header, authToken: string) => Header +>from16326 : (this: { header: Header; }, header: Header, authToken: string) => Header >this : { header: Header; } >header : Header >header : Header @@ -202,7 +202,7 @@ function from16326(this: { header: Header }, header: Header, authToken: string): } // boolean && T results in Partial function conditionalSpreadBoolean(b: boolean) : { x: number, y: number } { ->conditionalSpreadBoolean : (b: boolean) => { x: number; y: number;} +>conditionalSpreadBoolean : (b: boolean) => { x: number; y: number; } >b : boolean >x : number >y : number @@ -243,7 +243,7 @@ function conditionalSpreadBoolean(b: boolean) : { x: number, y: number } { >o : { x: number; y: number; } } function conditionalSpreadNumber(nt: number): { x: number, y: number } { ->conditionalSpreadNumber : (nt: number) => { x: number; y: number;} +>conditionalSpreadNumber : (nt: number) => { x: number; y: number; } >nt : number >x : number >y : number @@ -284,7 +284,7 @@ function conditionalSpreadNumber(nt: number): { x: number, y: number } { >o : { x: number; y: number; } } function conditionalSpreadString(st: string): { x: string, y: number } { ->conditionalSpreadString : (st: string) => { x: string; y: number;} +>conditionalSpreadString : (st: string) => { x: string; y: number; } >st : string >x : string >y : number @@ -396,7 +396,7 @@ let changeTypeBoth: { a: string, b: number } = // optional function container( ->container : (definiteBoolean: { sn: boolean;}, definiteString: { sn: string;}, optionalString: { sn?: string;}, optionalNumber: { sn?: number;}) => void +>container : (definiteBoolean: { sn: boolean; }, definiteString: { sn: string; }, optionalString: { sn?: string; }, optionalNumber: { sn?: number; }) => void definiteBoolean: { sn: boolean }, >definiteBoolean : { sn: boolean; } @@ -581,7 +581,7 @@ let overwriteId: { id: string, a: number, c: number, d: string } = >'no' : "no" function genericSpread(t: T, u: U, v: T | U, w: T | { s: string }, obj: { x: number }) { ->genericSpread : (t: T, u: U, v: T | U, w: T | { s: string;}, obj: { x: number;}) => void +>genericSpread : (t: T, u: U, v: T | U, w: T | { s: string; }, obj: { x: number; }) => void >t : T >u : U >v : T | U diff --git a/tests/baselines/reference/objectSpreadStrictNull.types b/tests/baselines/reference/objectSpreadStrictNull.types index eaf86742d2f2b..df703d7eaf262 100644 --- a/tests/baselines/reference/objectSpreadStrictNull.types +++ b/tests/baselines/reference/objectSpreadStrictNull.types @@ -2,7 +2,7 @@ === objectSpreadStrictNull.ts === function f( ->f : (definiteBoolean: { sn: boolean;}, definiteString: { sn: string;}, optionalString: { sn?: string;}, optionalNumber: { sn?: number;}, undefinedString: { sn: string | undefined;}, undefinedNumber: { sn: number | undefined;}) => void +>f : (definiteBoolean: { sn: boolean; }, definiteString: { sn: string; }, optionalString: { sn?: string; }, optionalNumber: { sn?: number; }, undefinedString: { sn: string | undefined; }, undefinedNumber: { sn: number | undefined; }) => void definiteBoolean: { sn: boolean }, >definiteBoolean : { sn: boolean; } diff --git a/tests/baselines/reference/operationsAvailableOnPromisedType.types b/tests/baselines/reference/operationsAvailableOnPromisedType.types index e7103e9d3eae5..2d07284266d8b 100644 --- a/tests/baselines/reference/operationsAvailableOnPromisedType.types +++ b/tests/baselines/reference/operationsAvailableOnPromisedType.types @@ -2,7 +2,7 @@ === operationsAvailableOnPromisedType.ts === async function fn( ->fn : (a: number, b: Promise, c: Promise, d: Promise<{ prop: string;}>, e: Promise<() => void>, f: Promise<() => void> | (() => void), g: Promise<{ new (): any;}>) => Promise +>fn : (a: number, b: Promise, c: Promise, d: Promise<{ prop: string; }>, e: Promise<() => void>, f: Promise<() => void> | (() => void), g: Promise<{ new (): any; }>) => Promise a: number, >a : number diff --git a/tests/baselines/reference/optionalBindingParameters2.types b/tests/baselines/reference/optionalBindingParameters2.types index 5cb87ff4686fd..0ea09ec41f767 100644 --- a/tests/baselines/reference/optionalBindingParameters2.types +++ b/tests/baselines/reference/optionalBindingParameters2.types @@ -2,7 +2,7 @@ === optionalBindingParameters2.ts === function foo({ x, y, z }?: { x: string; y: number; z: boolean }) { ->foo : ({ x, y, z }?: { x: string; y: number; z: boolean;}) => void +>foo : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => void >x : string >y : number >z : boolean diff --git a/tests/baselines/reference/optionalBindingParameters4.types b/tests/baselines/reference/optionalBindingParameters4.types index 4cbc93ac73e09..12012d1d6d926 100644 --- a/tests/baselines/reference/optionalBindingParameters4.types +++ b/tests/baselines/reference/optionalBindingParameters4.types @@ -5,7 +5,7 @@ * @param {{ cause?: string }} [options] */ function foo({ cause } = {}) { ->foo : ({ cause }?: { cause?: string;}) => string +>foo : ({ cause }?: { cause?: string; }) => string >cause : string >{} : {} diff --git a/tests/baselines/reference/optionalBindingParametersInOverloads2.types b/tests/baselines/reference/optionalBindingParametersInOverloads2.types index 4201d26ee1d01..ce56071ad6092 100644 --- a/tests/baselines/reference/optionalBindingParametersInOverloads2.types +++ b/tests/baselines/reference/optionalBindingParametersInOverloads2.types @@ -2,7 +2,7 @@ === optionalBindingParametersInOverloads2.ts === function foo({ x, y, z }?: { x: string; y: number; z: boolean }); ->foo : ({ x, y, z }?: { x: string; y: number; z: boolean;}) => any +>foo : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => any >x : string >y : number >z : boolean diff --git a/tests/baselines/reference/optionalChainingInference.types b/tests/baselines/reference/optionalChainingInference.types index 7bd2a8c2f7b76..eb202c06b7b7c 100644 --- a/tests/baselines/reference/optionalChainingInference.types +++ b/tests/baselines/reference/optionalChainingInference.types @@ -3,7 +3,7 @@ === optionalChainingInference.ts === // https://github.com/microsoft/TypeScript/issues/34579 declare function unbox(box: { value: T | undefined }): T; ->unbox : (box: { value: T | undefined;}) => T +>unbox : (box: { value: T | undefined; }) => T >box : { value: T | undefined; } >value : T diff --git a/tests/baselines/reference/optionalParameterInDestructuringWithInitializer.types b/tests/baselines/reference/optionalParameterInDestructuringWithInitializer.types index 4bc4d36133a16..201ced8dd9861 100644 --- a/tests/baselines/reference/optionalParameterInDestructuringWithInitializer.types +++ b/tests/baselines/reference/optionalParameterInDestructuringWithInitializer.types @@ -9,7 +9,7 @@ declare function f(a:number,b:number): void; >b : number function func1( {a, b}: {a: number, b?: number} = {a: 1, b: 2} ) { ->func1 : ({ a, b }?: { a: number; b?: number;}) => void +>func1 : ({ a, b }?: { a: number; b?: number; }) => void >a : number >b : number | undefined >a : number @@ -30,7 +30,7 @@ function func1( {a, b}: {a: number, b?: number} = {a: 1, b: 2} ) { } function func2( {a, b = 3}: {a: number, b?:number} = {a: 1,b: 2} ) { ->func2 : ({ a, b }?: { a: number; b?: number;}) => void +>func2 : ({ a, b }?: { a: number; b?: number; }) => void >a : number >b : number >3 : 3 @@ -52,7 +52,7 @@ function func2( {a, b = 3}: {a: number, b?:number} = {a: 1,b: 2} ) { } function func3( {a, b}: {a: number, b?: number} = {a: 1} ) { ->func3 : ({ a, b }?: { a: number; b?: number;}) => void +>func3 : ({ a, b }?: { a: number; b?: number; }) => void >a : number >b : number | undefined >a : number @@ -71,7 +71,7 @@ function func3( {a, b}: {a: number, b?: number} = {a: 1} ) { } function func4( {a: {b, c}, d}: {a: {b: number,c?: number},d: number} = {a: {b: 1,c: 2},d: 3} ) { ->func4 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number;}) => void +>func4 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number; }) => void >a : any >b : number >c : number | undefined @@ -100,7 +100,7 @@ function func4( {a: {b, c}, d}: {a: {b: number,c?: number},d: number} = {a: {b: } function func5({a: {b, c = 4}, d}: {a: {b: number,c?: number},d: number} = {a: {b: 1,c: 2},d: 3} ) { ->func5 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number;}) => void +>func5 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number; }) => void >a : any >b : number >c : number @@ -130,7 +130,7 @@ function func5({a: {b, c = 4}, d}: {a: {b: number,c?: number},d: number} = {a: { } function func6( {a: {b, c} = {b: 4, c: 5}, d}: {a: {b: number, c?: number}, d: number} = {a: {b: 1,c: 2}, d: 3} ) { ->func6 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number;}) => void +>func6 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number; }) => void >a : any >b : number >c : number | undefined @@ -164,7 +164,7 @@ function func6( {a: {b, c} = {b: 4, c: 5}, d}: {a: {b: number, c?: number}, d: n } function func7( {a: {b, c = 6} = {b: 4, c: 5}, d}: {a: {b: number, c?: number}, d: number} = {a: {b: 1, c: 2}, d: 3} ) { ->func7 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number;}) => void +>func7 : ({ a: { b, c }, d }?: { a: { b: number; c?: number; }; d: number; }) => void >a : any >b : number >c : number diff --git a/tests/baselines/reference/optionalParameterRetainsNull.types b/tests/baselines/reference/optionalParameterRetainsNull.types index ae9f3a4a3a11e..f64a90d213c1a 100644 --- a/tests/baselines/reference/optionalParameterRetainsNull.types +++ b/tests/baselines/reference/optionalParameterRetainsNull.types @@ -6,8 +6,8 @@ interface Bar { bar: number; foo: object | null; } >foo : object | null let a = { ->a : { test(a: K, b?: Bar[K] | null | undefined): void; } ->{ test (a: K, b?: Bar[K] | null) { }} : { test(a: K, b?: Bar[K] | null | undefined): void; } +>a : { test(a: K, b?: Bar[K] | null): void; } +>{ test (a: K, b?: Bar[K] | null) { }} : { test(a: K, b?: Bar[K] | null): void; } test (a: K, b?: Bar[K] | null) { } >test : (a: K, b?: Bar[K] | null) => void diff --git a/tests/baselines/reference/optionalPropertiesTest.types b/tests/baselines/reference/optionalPropertiesTest.types index b77f072901808..05668b0232326 100644 --- a/tests/baselines/reference/optionalPropertiesTest.types +++ b/tests/baselines/reference/optionalPropertiesTest.types @@ -2,7 +2,7 @@ === optionalPropertiesTest.ts === var x: {p1:number; p2?:string; p3?:{():number;};}; ->x : { p1: number; p2?: string; p3?: { (): number;}; } +>x : { p1: number; p2?: string; p3?: { (): number; }; } >p1 : number >p2 : string >p3 : () => number diff --git a/tests/baselines/reference/overloadResolutionTest1.types b/tests/baselines/reference/overloadResolutionTest1.types index c3932cb7a5d54..f5ff747854c9d 100644 --- a/tests/baselines/reference/overloadResolutionTest1.types +++ b/tests/baselines/reference/overloadResolutionTest1.types @@ -2,12 +2,12 @@ === overloadResolutionTest1.ts === function foo(bar:{a:number;}[]):string; ->foo : { (bar: { a: number;}[]): string; (bar: { a: boolean; }[]): number; } +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } >bar : { a: number; }[] >a : number function foo(bar:{a:boolean;}[]):number; ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean;}[]): number; } +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } >bar : { a: boolean; }[] >a : boolean @@ -55,12 +55,12 @@ var x1111 = foo([{a:null}]); // works - ambiguous call is resolved to be the fir function foo2(bar:{a:number;}):string; ->foo2 : { (bar: { a: number;}): string; (bar: { a: boolean; }): number; } +>foo2 : { (bar: { a: number; }): string; (bar: { a: boolean; }): number; } >bar : { a: number; } >a : number function foo2(bar:{a:boolean;}):number; ->foo2 : { (bar: { a: number; }): string; (bar: { a: boolean;}): number; } +>foo2 : { (bar: { a: number; }): string; (bar: { a: boolean; }): number; } >bar : { a: boolean; } >a : boolean @@ -96,12 +96,12 @@ var x4 = foo2({a:"s"}); // error function foo4(bar:{a:number;}):number; ->foo4 : { (bar: { a: number;}): number; (bar: { a: string; }): string; } +>foo4 : { (bar: { a: number; }): number; (bar: { a: string; }): string; } >bar : { a: number; } >a : number function foo4(bar:{a:string;}):string; ->foo4 : { (bar: { a: number; }): number; (bar: { a: string;}): string; } +>foo4 : { (bar: { a: number; }): number; (bar: { a: string; }): string; } >bar : { a: string; } >a : string diff --git a/tests/baselines/reference/overloadedConstructorFixesInferencesAppropriately.types b/tests/baselines/reference/overloadedConstructorFixesInferencesAppropriately.types index 29ab9ea9b9b9b..357464ffb574d 100644 --- a/tests/baselines/reference/overloadedConstructorFixesInferencesAppropriately.types +++ b/tests/baselines/reference/overloadedConstructorFixesInferencesAppropriately.types @@ -36,7 +36,7 @@ class AsyncLoader { } function load(): Box<{ success: true } | ErrorResult> { ->load : () => Box<{ success: true;} | ErrorResult> +>load : () => Box<{ success: true; } | ErrorResult> >success : true >true : true diff --git a/tests/baselines/reference/overloadsWithProvisionalErrors.types b/tests/baselines/reference/overloadsWithProvisionalErrors.types index 2a14c1ebc497e..1f6836db17c12 100644 --- a/tests/baselines/reference/overloadsWithProvisionalErrors.types +++ b/tests/baselines/reference/overloadsWithProvisionalErrors.types @@ -2,13 +2,13 @@ === overloadsWithProvisionalErrors.ts === var func: { ->func : { (s: string): number; (lambda: (s: string) => { a: number; b: number;}): string; } +>func : { (s: string): number; (lambda: (s: string) => { a: number; b: number; }): string; } (s: string): number; >s : string (lambda: (s: string) => { a: number; b: number }): string; ->lambda : (s: string) => { a: number; b: number;} +>lambda : (s: string) => { a: number; b: number; } >s : string >a : number >b : number diff --git a/tests/baselines/reference/override19.types b/tests/baselines/reference/override19.types index 8aa0d3c811bed..9063ee900a70d 100644 --- a/tests/baselines/reference/override19.types +++ b/tests/baselines/reference/override19.types @@ -6,7 +6,7 @@ type Foo = abstract new(...args: any) => any; >args : any declare function CreateMixin(Context: C, Base: T): T & { ->CreateMixin : (Context: C, Base: T) => T & (new (...args: any[]) => { context: InstanceType;}) +>CreateMixin : (Context: C, Base: T) => T & (new (...args: any[]) => { context: InstanceType; }) >Context : C >Base : T diff --git a/tests/baselines/reference/parameterDestructuringObjectLiteral.types b/tests/baselines/reference/parameterDestructuringObjectLiteral.types index 1e6d378b652b3..1dc67d7524306 100644 --- a/tests/baselines/reference/parameterDestructuringObjectLiteral.types +++ b/tests/baselines/reference/parameterDestructuringObjectLiteral.types @@ -4,8 +4,8 @@ // Repro from #22644 const fn1 = (options: { headers?: {} }) => { }; ->fn1 : (options: { headers?: {};}) => void ->(options: { headers?: {} }) => { } : (options: { headers?: {};}) => void +>fn1 : (options: { headers?: {}; }) => void +>(options: { headers?: {} }) => { } : (options: { headers?: {}; }) => void >options : { headers?: {}; } >headers : {} diff --git a/tests/baselines/reference/parameterNamesInTypeParameterList.types b/tests/baselines/reference/parameterNamesInTypeParameterList.types index 4ec1e0dcbd70e..a6d7ff34b4351 100644 --- a/tests/baselines/reference/parameterNamesInTypeParameterList.types +++ b/tests/baselines/reference/parameterNamesInTypeParameterList.types @@ -13,7 +13,7 @@ function f0(a: T) { } function f1({a}: {a:T}) { ->f1 : ({ a }: { a: T;}) => void +>f1 : ({ a }: { a: T; }) => void >a : any >a : T >a : T @@ -49,7 +49,7 @@ class A { >b : any } m1({a}: {a:T}) { ->m1 : ({ a }: { a: T;}) => void +>m1 : ({ a }: { a: T; }) => void >a : any >a : T >a : T diff --git a/tests/baselines/reference/parseArrowFunctionWithFunctionReturnType.types b/tests/baselines/reference/parseArrowFunctionWithFunctionReturnType.types index 9454f587f2fb2..69aa9e1b8b316 100644 --- a/tests/baselines/reference/parseArrowFunctionWithFunctionReturnType.types +++ b/tests/baselines/reference/parseArrowFunctionWithFunctionReturnType.types @@ -2,7 +2,7 @@ === parseArrowFunctionWithFunctionReturnType.ts === const fn = (): (() => T) => null as any; ->fn : () => () => T ->(): (() => T) => null as any : () => () => T +>fn : () => (() => T) +>(): (() => T) => null as any : () => (() => T) >null as any : any diff --git a/tests/baselines/reference/parserShorthandPropertyAssignment1.types b/tests/baselines/reference/parserShorthandPropertyAssignment1.types index 7016f3a1103f2..3abe0b9d04896 100644 --- a/tests/baselines/reference/parserShorthandPropertyAssignment1.types +++ b/tests/baselines/reference/parserShorthandPropertyAssignment1.types @@ -2,7 +2,7 @@ === parserShorthandPropertyAssignment1.ts === function foo(obj: { name?: string; id: number }) { } ->foo : (obj: { name?: string; id: number;}) => void +>foo : (obj: { name?: string; id: number; }) => void >obj : { name?: string; id: number; } >name : string >id : number diff --git a/tests/baselines/reference/parserharness.types b/tests/baselines/reference/parserharness.types index 4dcf88c4b3361..22c2f0bc59863 100644 --- a/tests/baselines/reference/parserharness.types +++ b/tests/baselines/reference/parserharness.types @@ -2254,7 +2254,7 @@ module Harness { >[] : undefined[] var timeFunction: ( ->timeFunction : (benchmark: Benchmark, description?: string, name?: string, f?: (bench?: { (): void;}) => void) => void +>timeFunction : (benchmark: Benchmark, description?: string, name?: string, f?: (bench?: { (): void; }) => void) => void benchmark: Benchmark, >benchmark : Benchmark @@ -2266,7 +2266,7 @@ module Harness { >name : string f?: (bench?: { (): void; }) => void ->f : (bench?: { (): void;}) => void +>f : (bench?: { (): void; }) => void >bench : () => void ) => void; @@ -2721,7 +2721,7 @@ module Harness { >{} : {} public toArray(): { filename: string; file: WriterAggregator; }[] { ->toArray : () => { filename: string; file: WriterAggregator;}[] +>toArray : () => { filename: string; file: WriterAggregator; }[] >filename : string >file : WriterAggregator @@ -5866,7 +5866,7 @@ module Harness { /** Given a test file containing // @Filename directives, return an array of named units of code to be added to an existing compiler instance */ export function makeUnitsFromTest(code: string, filename: string): { settings: CompilerSetting[]; testUnitData: TestUnitData[]; } { ->makeUnitsFromTest : (code: string, filename: string) => { settings: CompilerSetting[]; testUnitData: TestUnitData[];} +>makeUnitsFromTest : (code: string, filename: string) => { settings: CompilerSetting[]; testUnitData: TestUnitData[]; } >code : string >filename : string >settings : CompilerSetting[] @@ -7324,7 +7324,7 @@ module Harness { >[] : undefined[] function mapEdits(edits: Services.TextEdit[]): { edit: Services.TextEdit; index: number; }[] { ->mapEdits : (edits: Services.TextEdit[]) => { edit: Services.TextEdit; index: number;}[] +>mapEdits : (edits: Services.TextEdit[]) => { edit: Services.TextEdit; index: number; }[] >edits : Services.TextEdit[] >Services : any >edit : Services.TextEdit diff --git a/tests/baselines/reference/primitiveUnionDetection.types b/tests/baselines/reference/primitiveUnionDetection.types index d51a4d85e43b2..9fee80db19e17 100644 --- a/tests/baselines/reference/primitiveUnionDetection.types +++ b/tests/baselines/reference/primitiveUnionDetection.types @@ -7,7 +7,7 @@ type Kind = "one" | "two" | "three"; >Kind : "one" | "two" | "three" declare function getInterfaceFromString(options?: { type?: T } & { type?: Kind }): T; ->getInterfaceFromString : (options?: { type?: T;} & { type?: Kind;}) => T +>getInterfaceFromString : (options?: { type?: T; } & { type?: Kind; }) => T >options : ({ type?: T | undefined; } & { type?: Kind | undefined; }) | undefined >type : T | undefined >type : Kind | undefined diff --git a/tests/baselines/reference/privateNameAndPropertySignature.types b/tests/baselines/reference/privateNameAndPropertySignature.types index 407afa6299569..b2c219d5ec55b 100644 --- a/tests/baselines/reference/privateNameAndPropertySignature.types +++ b/tests/baselines/reference/privateNameAndPropertySignature.types @@ -20,7 +20,7 @@ interface B { } declare const x: { ->x : { bar: { #baz: string; #taz(): string;}; } +>x : { bar: { #baz: string; #taz(): string; }; } #foo: number; >#foo : number @@ -40,7 +40,7 @@ declare const x: { }; declare const y: [{ qux: { #quux: 3 } }]; ->y : [{ qux: { #quux: 3;}; }] +>y : [{ qux: { #quux: 3; }; }] >qux : {} >#quux : 3 diff --git a/tests/baselines/reference/privateWriteOnlyAccessorRead.types b/tests/baselines/reference/privateWriteOnlyAccessorRead.types index 4a06eaf2fb0d0..4119fe079c3d6 100644 --- a/tests/baselines/reference/privateWriteOnlyAccessorRead.types +++ b/tests/baselines/reference/privateWriteOnlyAccessorRead.types @@ -5,8 +5,8 @@ class Test { >Test : Test set #value(v: { foo: { bar: number } }) {} ->#value : { foo: { bar: number;}; } ->v : { foo: { bar: number;}; } +>#value : { foo: { bar: number; }; } +>v : { foo: { bar: number; }; } >foo : { bar: number; } >bar : number diff --git a/tests/baselines/reference/promisePermutations.types b/tests/baselines/reference/promisePermutations.types index 86772c630671c..b911f96838eb3 100644 --- a/tests/baselines/reference/promisePermutations.types +++ b/tests/baselines/reference/promisePermutations.types @@ -102,11 +102,11 @@ declare function testFunctionP(): Promise; >testFunctionP : () => Promise declare function testFunction2(): IPromise<{ x: number }>; ->testFunction2 : () => IPromise<{ x: number;}> +>testFunction2 : () => IPromise<{ x: number; }> >x : number declare function testFunction2P(): Promise<{ x: number }>; ->testFunction2P : () => Promise<{ x: number;}> +>testFunction2P : () => Promise<{ x: number; }> >x : number declare function testFunction3(x: number): IPromise; diff --git a/tests/baselines/reference/promisePermutations2.types b/tests/baselines/reference/promisePermutations2.types index 8dd5a1095ab36..229a6048b9e91 100644 --- a/tests/baselines/reference/promisePermutations2.types +++ b/tests/baselines/reference/promisePermutations2.types @@ -77,11 +77,11 @@ declare function testFunctionP(): Promise; >testFunctionP : () => Promise declare function testFunction2(): IPromise<{ x: number }>; ->testFunction2 : () => IPromise<{ x: number;}> +>testFunction2 : () => IPromise<{ x: number; }> >x : number declare function testFunction2P(): Promise<{ x: number }>; ->testFunction2P : () => Promise<{ x: number;}> +>testFunction2P : () => Promise<{ x: number; }> >x : number declare function testFunction3(x: number): IPromise; diff --git a/tests/baselines/reference/promisePermutations3.types b/tests/baselines/reference/promisePermutations3.types index 20f6b12cc6150..1efd719611e1b 100644 --- a/tests/baselines/reference/promisePermutations3.types +++ b/tests/baselines/reference/promisePermutations3.types @@ -77,11 +77,11 @@ declare function testFunctionP(): Promise; >testFunctionP : () => Promise declare function testFunction2(): IPromise<{ x: number }>; ->testFunction2 : () => IPromise<{ x: number;}> +>testFunction2 : () => IPromise<{ x: number; }> >x : number declare function testFunction2P(): Promise<{ x: number }>; ->testFunction2P : () => Promise<{ x: number;}> +>testFunction2P : () => Promise<{ x: number; }> >x : number declare function testFunction3(x: number): IPromise; diff --git a/tests/baselines/reference/propertyAccessChain.2.types b/tests/baselines/reference/propertyAccessChain.2.types index df69f1eaa584c..d53471cb65558 100644 --- a/tests/baselines/reference/propertyAccessChain.2.types +++ b/tests/baselines/reference/propertyAccessChain.2.types @@ -11,7 +11,7 @@ o1?.b; >b : string declare const o2: undefined | { b: { c: string } }; ->o2 : { b: { c: string;}; } +>o2 : { b: { c: string; }; } >b : { c: string; } >c : string @@ -23,7 +23,7 @@ o2?.b.c; >c : string declare const o3: { b: undefined | { c: string } }; ->o3 : { b: undefined | { c: string;}; } +>o3 : { b: undefined | { c: string; }; } >b : { c: string; } >c : string diff --git a/tests/baselines/reference/propertyAccessChain.types b/tests/baselines/reference/propertyAccessChain.types index c951fcc920c8f..d3abc74c21557 100644 --- a/tests/baselines/reference/propertyAccessChain.types +++ b/tests/baselines/reference/propertyAccessChain.types @@ -11,7 +11,7 @@ o1?.b; >b : string | undefined declare const o2: undefined | { b: { c: string } }; ->o2 : { b: { c: string;}; } | undefined +>o2 : { b: { c: string; }; } | undefined >b : { c: string; } >c : string @@ -23,7 +23,7 @@ o2?.b.c; >c : string | undefined declare const o3: { b: undefined | { c: string } }; ->o3 : { b: undefined | { c: string;}; } +>o3 : { b: undefined | { c: string; }; } >b : { c: string; } | undefined >c : string @@ -35,8 +35,8 @@ o3.b?.c; >c : string | undefined declare const o4: { b?: { c: { d?: { e: string } } } }; ->o4 : { b?: { c: { d?: { e: string; };}; } | undefined; } ->b : { c: { d?: { e: string; };}; } | undefined +>o4 : { b?: { c: { d?: { e: string; }; }; } | undefined; } +>b : { c: { d?: { e: string; }; }; } | undefined >c : { d?: { e: string; } | undefined; } >d : { e: string; } | undefined >e : string @@ -53,8 +53,8 @@ o4.b?.c.d?.e; >e : string | undefined declare const o5: { b?(): { c: { d?: { e: string } } } }; ->o5 : { b?(): { c: { d?: { e: string; }; };}; } ->b : (() => { c: { d?: { e: string; }; };}) | undefined +>o5 : { b?(): { c: { d?: { e: string; }; }; }; } +>b : (() => { c: { d?: { e: string; }; }; }) | undefined >c : { d?: { e: string; } | undefined; } >d : { e: string; } | undefined >e : string @@ -73,7 +73,7 @@ o5.b?.().c.d?.e; // GH#33744 declare const o6: () => undefined | ({ x: number }); ->o6 : () => undefined | ({ x: number;}) +>o6 : () => undefined | ({ x: number; }) >x : number o6()?.x; diff --git a/tests/baselines/reference/propertyAccessWidening.types b/tests/baselines/reference/propertyAccessWidening.types index c5f329ffffa65..cabba91b9edd7 100644 --- a/tests/baselines/reference/propertyAccessWidening.types +++ b/tests/baselines/reference/propertyAccessWidening.types @@ -56,7 +56,7 @@ function g2(headerNames: any) { // Object in property or element access is widened when target of assignment function foo(options?: { a: string, b: number }) { ->foo : (options?: { a: string; b: number;}) => void +>foo : (options?: { a: string; b: number; }) => void >options : { a: string; b: number; } | undefined >a : string >b : number diff --git a/tests/baselines/reference/ramdaToolsNoInfinite2.types b/tests/baselines/reference/ramdaToolsNoInfinite2.types index caf9612573648..69f80fc06027c 100644 --- a/tests/baselines/reference/ramdaToolsNoInfinite2.types +++ b/tests/baselines/reference/ramdaToolsNoInfinite2.types @@ -422,7 +422,7 @@ declare module "Number/_Internal" { >NegativeIterationKeys : "-40" | "-39" | "-38" | "-37" | "-36" | "-35" | "-34" | "-33" | "-32" | "-31" | "-30" | "-29" | "-28" | "-27" | "-26" | "-25" | "-24" | "-23" | "-22" | "-21" | "-20" | "-19" | "-18" | "-17" | "-16" | "-15" | "-14" | "-13" | "-12" | "-11" | "-10" | "-9" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" export type Numbers = { ->Numbers : { string: { 'all': Format; '+': Format; '-': Format; '0': Format;}; number: { 'all': Format; '+': Format; '-': Format; '0': Format;}; } +>Numbers : { string: { 'all': Format; '+': Format; '-': Format; '0': Format; }; number: { 'all': Format; '+': Format; '-': Format; '0': Format; }; } 'string': { >'string' : { all: Format; '+': Format; '-': Format; '0': Format; } diff --git a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.types b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.types index 6767f3c41c5fe..7faebc9249f21 100644 --- a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.types +++ b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.types @@ -6,7 +6,7 @@ import * as React from "react"; >React : typeof React function myHigherOrderComponent