Skip to content

Commit 85c7e7a

Browse files
committed
Update existing baselines
1 parent d088733 commit 85c7e7a

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

tests/baselines/reference/constAssertions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ declare let o2: {
258258
readonly d: () => void;
259259
};
260260
declare let o3: {
261+
readonly [x: string]: 10 | 1 | 2 | 3 | 20 | (() => void) | 4;
261262
readonly a: 1;
262263
readonly b: 2;
263264
readonly c: 3;

tests/baselines/reference/constAssertions.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ let o2 = { a: 1, 'b': 2, ['c']: 3, d() {}, ['e' + '']: 4 } as const;
202202
>4 : 4
203203

204204
let o3 = { ...o1, ...o2 } as const;
205-
>o3 : { readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; readonly x: 10; readonly y: 20; }
206-
>{ ...o1, ...o2 } as const : { readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; readonly x: 10; readonly y: 20; }
207-
>{ ...o1, ...o2 } : { readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; readonly x: 10; readonly y: 20; }
205+
>o3 : { readonly [x: string]: 10 | 1 | 2 | 3 | 20 | (() => void) | 4; readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; readonly x: 10; readonly y: 20; }
206+
>{ ...o1, ...o2 } as const : { readonly [x: string]: 10 | 1 | 2 | 3 | 20 | (() => void) | 4; readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; readonly x: 10; readonly y: 20; }
207+
>{ ...o1, ...o2 } : { readonly [x: string]: 10 | 1 | 2 | 3 | 20 | (() => void) | 4; readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; readonly x: 10; readonly y: 20; }
208208
>o1 : { readonly x: 10; readonly y: 20; }
209209
>o2 : { readonly [x: string]: 1 | 2 | 3 | (() => void) | 4; readonly a: 1; readonly b: 2; readonly c: 3; readonly d: () => void; }
210210

tests/baselines/reference/objectSpreadComputedProperty.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ function f() {
1717
>a : any
1818

1919
const o1 = { ...{}, [n]: n };
20-
>o1 : {}
21-
>{ ...{}, [n]: n } : {}
20+
>o1 : { [x: number]: number; }
21+
>{ ...{}, [n]: n } : { [x: number]: number; }
2222
>{} : {}
2323
>[n] : number
2424
>n : number
2525
>n : number
2626

2727
const o2 = { ...{}, [a]: n };
28-
>o2 : {}
29-
>{ ...{}, [a]: n } : {}
28+
>o2 : { [x: number]: number; }
29+
>{ ...{}, [a]: n } : { [x: number]: number; }
3030
>{} : {}
3131
>[a] : number
3232
>a : any
3333
>n : number
3434

3535
const o3 = { [a]: n, ...{}, [n]: n, ...{}, [m]: m };
36-
>o3 : {}
37-
>{ [a]: n, ...{}, [n]: n, ...{}, [m]: m } : {}
36+
>o3 : { [x: number]: number; }
37+
>{ [a]: n, ...{}, [n]: n, ...{}, [m]: m } : { [x: number]: number; }
3838
>[a] : number
3939
>a : any
4040
>n : number

tests/baselines/reference/useBeforeDeclaration_propertyAssignment.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export class C {
55
>C : C
66

77
public a = { b: this.b, ...this.c, [this.b]: `${this.c}`};
8-
>a : { c: number; b: number; }
9-
>{ b: this.b, ...this.c, [this.b]: `${this.c}`} : { c: number; b: number; }
8+
>a : { [x: number]: string; c: number; b: number; }
9+
>{ b: this.b, ...this.c, [this.b]: `${this.c}`} : { [x: number]: string; c: number; b: number; }
1010
>b : number
1111
>this.b : number
1212
>this : this

0 commit comments

Comments
 (0)