File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export function shorthandPropertyAssignment() {
5
5
const a = 'a'
6
6
return { a }
7
7
}
8
- type A = { a : string }
8
+ type A = { a : string , b : number }
9
9
export function typedPropertyAssignment ( ) : A {
10
- return { a : 'a' }
10
+ return { a : 'a' , "b" : 10 }
11
11
}
Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ export function shorthandPropertyAssignment() {
13
13
// ^ definition syntax 1.0.0 src/`property-assignment.ts`/a1:
14
14
// ^ reference local 2
15
15
}
16
- type A = { a : string }
16
+ type A = { a : string , b : number }
17
17
// ^ definition syntax 1.0.0 src/`property-assignment.ts`/A#
18
18
// ^ definition syntax 1.0.0 src/`property-assignment.ts`/A#typeLiteral3:a.
19
+ // ^ definition syntax 1.0.0 src/`property-assignment.ts`/A#typeLiteral3:b.
19
20
export function typedPropertyAssignment ( ) : A {
20
21
// ^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`property-assignment.ts`/typedPropertyAssignment().
21
22
// ^ reference syntax 1.0.0 src/`property-assignment.ts`/A#
22
- return { a : 'a' }
23
+ return { a : 'a' , "b" : 10 }
23
24
// ^ reference syntax 1.0.0 src/`property-assignment.ts`/A#typeLiteral3:a.
25
+ // ^^^ definition syntax 1.0.0 src/`property-assignment.ts`/`"b"0`:
24
26
}
25
27
You can’t perform that action at this time.
0 commit comments