Skip to content

Commit f4bcb74

Browse files
committed
Accept new baselines
1 parent 21e3d45 commit f4bcb74

File tree

87 files changed

+252
-278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+252
-278
lines changed

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6719,7 +6719,7 @@ declare namespace ts {
67196719
ContainsSpread = 2097152,
67206720
ObjectRestType = 4194304,
67216721
InstantiationExpressionType = 8388608,
6722-
InstantiatedReference = 268435456,
6722+
InstantiationResult = 268435456,
67236723
}
67246724
interface ObjectType extends Type {
67256725
objectFlags: ObjectFlags;

tests/baselines/reference/arrayFrom.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const inputALike: ArrayLike<A> = { length: 0 };
3939
> : ^
4040

4141
const inputARand = getEither(inputA, inputALike);
42-
>inputARand : Iterable<A> | ArrayLike<A>
42+
>inputARand : ArrayLike<A> | Iterable<A>
4343
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
44-
>getEither(inputA, inputALike) : Iterable<A> | ArrayLike<A>
44+
>getEither(inputA, inputALike) : ArrayLike<A> | Iterable<A>
4545
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
4646
>getEither : <T>(in1: Iterable<T>, in2: ArrayLike<T>) => ArrayLike<T> | Iterable<T>
4747
> : ^ ^^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -203,7 +203,7 @@ const result8: A[] = Array.from(inputARand);
203203
> : ^^^^^^^^^^^^^^^^
204204
>from : { <T>(arrayLike: ArrayLike<T>): T[]; <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; <T>(iterable: Iterable<T> | ArrayLike<T>): T[]; <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }
205205
> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^
206-
>inputARand : Iterable<A> | ArrayLike<A>
206+
>inputARand : ArrayLike<A> | Iterable<A>
207207
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
208208

209209
const result9: B[] = Array.from(inputARand, ({ a }): B => ({ b: a }));
@@ -217,7 +217,7 @@ const result9: B[] = Array.from(inputARand, ({ a }): B => ({ b: a }));
217217
> : ^^^^^^^^^^^^^^^^
218218
>from : { <T>(arrayLike: ArrayLike<T>): T[]; <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; <T>(iterable: Iterable<T> | ArrayLike<T>): T[]; <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }
219219
> : ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^ ^^ ^^ ^^^ ^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^
220-
>inputARand : Iterable<A> | ArrayLike<A>
220+
>inputARand : ArrayLike<A> | Iterable<A>
221221
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^
222222
>({ a }): B => ({ b: a }) : ({ a }: A) => B
223223
> : ^ ^^^^^^^^

tests/baselines/reference/arrayLiterals3.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ var temp2: [number[], string[]] = [[1, 2, 3], ["hello", "string"]];
9797

9898
interface tup {
9999
0: number[]|string[];
100-
>0 : string[] | number[]
100+
>0 : number[] | string[]
101101
> : ^^^^^^^^^^^^^^^^^^^
102102

103103
1: number[]|string[];
104-
>1 : string[] | number[]
104+
>1 : number[] | string[]
105105
> : ^^^^^^^^^^^^^^^^^^^
106106
}
107107
interface myArray extends Array<Number> { }
@@ -111,7 +111,7 @@ var c0: tup = [...temp2]; // Error
111111
> : ^^^
112112
>[...temp2] : [number[], string[]]
113113
> : ^^^^^^^^^^^^^^^^^^^^
114-
>...temp2 : string[] | number[]
114+
>...temp2 : number[] | string[]
115115
> : ^^^^^^^^^^^^^^^^^^^
116116
>temp2 : [number[], string[]]
117117
> : ^^^^^^^^^^^^^^^^^^^^

tests/baselines/reference/checkJsxChildrenCanBeTupleType.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 5,000
4+
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
77
Symbol count: 100,000

tests/baselines/reference/checkJsxChildrenProperty16.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [tests/cases/conformance/jsx/checkJsxChildrenProperty16.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 5,000
4+
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== checkJsxChildrenProperty16.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/checkJsxUnionSFXContextualTypeInferredCorrectly.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [tests/cases/conformance/jsx/checkJsxUnionSFXContextualTypeInferredCorrectly.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 5,000
4+
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== checkJsxUnionSFXContextualTypeInferredCorrectly.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/circularlySimplifyingConditionalTypesNoCrash.types

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//// [tests/cases/compiler/circularlySimplifyingConditionalTypesNoCrash.ts] ////
22

3-
=== Performance Stats ===
4-
Instantiation count: 1,000
5-
63
=== circularlySimplifyingConditionalTypesNoCrash.ts ===
74
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
85
>Omit : Omit<T, K>
@@ -71,8 +68,8 @@ declare var connect: Connect;
7168
const myStoreConnect: Connect = function(
7269
>myStoreConnect : Connect
7370
> : ^^^^^^^
74-
>function( mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options: unknown = {},) { return connect( mapStateToProps, mapDispatchToProps, mergeProps, options, );} : (mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options?: unknown) => InferableComponentEnhancerWithProps<TStateProps, Omit<Shared<TStateProps, any>, Extract<keyof TStateProps, Extract<keyof TStateProps, string | number | symbol>>> & TOwnProps>
75-
> : ^ ^^^ ^^ ^^^ ^^ ^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71+
>function( mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options: unknown = {},) { return connect( mapStateToProps, mapDispatchToProps, mergeProps, options, );} : (mapStateToProps?: any, mapDispatchToProps?: any, mergeProps?: any, options?: unknown) => InferableComponentEnhancerWithProps<TStateProps, Omit<P, Extract<keyof TStateProps, keyof P>> & TOwnProps>
72+
> : ^ ^^^ ^^ ^^^ ^^ ^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7673

7774
mapStateToProps?: any,
7875
>mapStateToProps : any
@@ -91,8 +88,8 @@ const myStoreConnect: Connect = function(
9188

9289
) {
9390
return connect(
94-
>connect( mapStateToProps, mapDispatchToProps, mergeProps, options, ) : InferableComponentEnhancerWithProps<TStateProps, Omit<Shared<TStateProps, any>, Extract<keyof TStateProps, Extract<keyof TStateProps, string | number | symbol>>> & TOwnProps>
95-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91+
>connect( mapStateToProps, mapDispatchToProps, mergeProps, options, ) : InferableComponentEnhancerWithProps<TStateProps, Omit<P, Extract<keyof TStateProps, keyof P>> & TOwnProps>
92+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9693
>connect : Connect
9794
> : ^^^^^^^
9895

tests/baselines/reference/contextuallyTypedJsxChildren2.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [tests/cases/compiler/contextuallyTypedJsxChildren2.tsx] ////
22

33
=== Performance Stats ===
4-
Assignability cache: 5,000
4+
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== contextuallyTypedJsxChildren2.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/controlFlowOptionalChain3.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== controlFlowOptionalChain3.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/discriminateWithOptionalProperty2(exactoptionalpropertytypes=false).types

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//// [tests/cases/compiler/discriminateWithOptionalProperty2.ts] ////
22

3-
=== Performance Stats ===
4-
Type Count: 1,000
5-
63
=== discriminateWithOptionalProperty2.ts ===
74
// https://github.com/microsoft/TypeScript/issues/55532#issuecomment-1694744665
85

0 commit comments

Comments
 (0)