diff --git a/tests/baselines/reference/mappedTypesArraysTuples.types b/tests/baselines/reference/mappedTypesArraysTuples.types index 83089828b4a09..e246f1d97514d 100644 --- a/tests/baselines/reference/mappedTypesArraysTuples.types +++ b/tests/baselines/reference/mappedTypesArraysTuples.types @@ -1,94 +1,61 @@ === tests/cases/conformance/types/mapped/mappedTypesArraysTuples.ts === type Box = { value: T }; >Box : Box ->T : T >value : T ->T : T type Boxified = { [P in keyof T]: Box }; >Boxified : Boxified ->T : T ->P : P ->T : T ->Box : Box ->T : T ->P : P type T00 = Boxified<[number, string?, ...boolean[]]>; >T00 : [Box, Box?, ...Box[]] ->Boxified : Boxified type T01 = Partial<[number, string?, ...boolean[]]>; >T01 : [(number | undefined)?, (string | undefined)?, ...(boolean | undefined)[]] ->Partial : Partial type T02 = Required<[number, string?, ...boolean[]]>; >T02 : [number, string, ...boolean[]] ->Required : Required type T10 = Boxified; >T10 : Box[] ->Boxified : Boxified type T11 = Partial; >T11 : (string | undefined)[] ->Partial : Partial type T12 = Required; >T12 : string[] ->Required : Required type T13 = Boxified>; >T13 : ReadonlyArray> ->Boxified : Boxified ->ReadonlyArray : ReadonlyArray type T14 = Partial>; >T14 : ReadonlyArray ->Partial : Partial ->ReadonlyArray : ReadonlyArray type T15 = Required>; >T15 : ReadonlyArray ->Required : Required ->ReadonlyArray : ReadonlyArray type T20 = Boxified<(string | undefined)[]>; >T20 : Box[] ->Boxified : Boxified type T21 = Partial<(string | undefined)[]>; >T21 : (string | undefined)[] ->Partial : Partial type T22 = Required<(string | undefined)[]>; >T22 : string[] ->Required : Required type T23 = Boxified>; >T23 : ReadonlyArray> ->Boxified : Boxified ->ReadonlyArray : ReadonlyArray type T24 = Partial>; >T24 : ReadonlyArray ->Partial : Partial ->ReadonlyArray : ReadonlyArray type T25 = Required>; >T25 : ReadonlyArray ->Required : Required ->ReadonlyArray : ReadonlyArray type T30 = Boxified>; >T30 : Box[] ->Boxified : Boxified ->Partial : Partial type T31 = Partial>; >T31 : (Box | undefined)[] ->Partial : Partial ->Boxified : Boxified type A = { a: string }; >A : A @@ -100,27 +67,13 @@ type B = { b: string }; type T40 = Boxified | [A, B] | string | string[]>; >T40 : string | Box[] | Boxified | Box[] | ReadonlyArray> | [Box, Box] ->Boxified : Boxified ->A : A ->A : A ->ReadonlyArray : ReadonlyArray ->A : A ->A : A ->B : B declare function unboxify(x: Boxified): T; >unboxify : (x: Boxified) => T ->T : T >x : Boxified ->Boxified : Boxified ->T : T ->T : T declare let x10: [Box, Box, ...Box[]]; >x10 : [Box, Box, ...Box[]] ->Box : Box ->Box : Box ->Box : Box let y10 = unboxify(x10); >y10 : [number, string, ...boolean[]] @@ -130,7 +83,6 @@ let y10 = unboxify(x10); declare let x11: Box[]; >x11 : Box[] ->Box : Box let y11 = unboxify(x11); >y11 : number[] @@ -141,9 +93,7 @@ let y11 = unboxify(x11); declare let x12: { a: Box, b: Box }; >x12 : { a: Box; b: Box; } >a : Box ->Box : Box >b : Box ->Box : Box let y12 = unboxify(x12); >y12 : { a: number; b: string[]; } @@ -153,11 +103,7 @@ let y12 = unboxify(x12); declare function nonpartial(x: Partial): T; >nonpartial : (x: Partial) => T ->T : T >x : Partial ->Partial : Partial ->T : T ->T : T declare let x20: [number | undefined, string?, ...boolean[]]; >x20 : [number | undefined, (string | undefined)?, ...boolean[]] @@ -190,39 +136,20 @@ let y22 = nonpartial(x22); type Awaited = T extends PromiseLike ? U : T; >Awaited : Awaited ->T : T ->T : T ->PromiseLike : PromiseLike ->U : U ->U : U ->T : T type Awaitified = { [P in keyof T]: Awaited }; >Awaitified : Awaitified ->T : T ->P : P ->T : T ->Awaited : Awaited ->T : T ->P : P declare function all(...values: T): Promise>; >all : (...values: T) => Promise> ->T : T >values : T ->T : T ->Promise : Promise ->Awaitified : Awaitified ->T : T function f1(a: number, b: Promise, c: string[], d: Promise) { >f1 : (a: number, b: Promise, c: string[], d: Promise) => void >a : number >b : Promise ->Promise : Promise >c : string[] >d : Promise ->Promise : Promise let x1 = all(a); >x1 : Promise<[number]> diff --git a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.types b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.types index 44fbbd8621d88..809012c49e088 100644 --- a/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.types +++ b/tests/baselines/reference/targetEs6DecoratorMetadataImportNotElided.types @@ -15,7 +15,6 @@ export class MyComponent { _ref: TemplateRef; >_ref : TemplateRef ->TemplateRef : TemplateRef @Input() >Input() : any @@ -30,7 +29,6 @@ export class MyComponent { set ref(value: TemplateRef) { this._ref = value; } >ref : TemplateRef >value : TemplateRef ->TemplateRef : TemplateRef >this._ref = value : TemplateRef >this._ref : TemplateRef >this : this diff --git a/tests/baselines/reference/unusedTypeParameters_infer.types b/tests/baselines/reference/unusedTypeParameters_infer.types index d6fb8274ed33f..d849e25d961de 100644 --- a/tests/baselines/reference/unusedTypeParameters_infer.types +++ b/tests/baselines/reference/unusedTypeParameters_infer.types @@ -1,8 +1,4 @@ === tests/cases/compiler/unusedTypeParameters_infer.ts === type Length = T extends ArrayLike ? number : never; >Length : Length ->T : T ->T : T ->ArrayLike : ArrayLike ->U : U