@@ -165,3 +165,56 @@ const response: Query = {
165
165
},
166
166
};
167
167
168
+ // Repro from #53412
169
+
170
+ type BaseItem = {
171
+ >BaseItem : Symbol(BaseItem, Decl(nestedExcessPropertyChecking.ts, 62, 2))
172
+
173
+ id: number;
174
+ >id : Symbol(id, Decl(nestedExcessPropertyChecking.ts, 66, 17))
175
+ }
176
+ type ExtendedItem = BaseItem & {
177
+ >ExtendedItem : Symbol(ExtendedItem, Decl(nestedExcessPropertyChecking.ts, 68, 1))
178
+ >BaseItem : Symbol(BaseItem, Decl(nestedExcessPropertyChecking.ts, 62, 2))
179
+
180
+ description: string | null
181
+ >description : Symbol(description, Decl(nestedExcessPropertyChecking.ts, 69, 32))
182
+
183
+ };
184
+
185
+ type BaseValue = {
186
+ >BaseValue : Symbol(BaseValue, Decl(nestedExcessPropertyChecking.ts, 71, 2))
187
+
188
+ // there are other fields
189
+ items: BaseItem[];
190
+ >items : Symbol(items, Decl(nestedExcessPropertyChecking.ts, 73, 18))
191
+ >BaseItem : Symbol(BaseItem, Decl(nestedExcessPropertyChecking.ts, 62, 2))
192
+ }
193
+ type ExtendedValue = BaseValue & {
194
+ >ExtendedValue : Symbol(ExtendedValue, Decl(nestedExcessPropertyChecking.ts, 76, 1))
195
+ >BaseValue : Symbol(BaseValue, Decl(nestedExcessPropertyChecking.ts, 71, 2))
196
+
197
+ // there are other fields
198
+ items: ExtendedItem[];
199
+ >items : Symbol(items, Decl(nestedExcessPropertyChecking.ts, 77, 34))
200
+ >ExtendedItem : Symbol(ExtendedItem, Decl(nestedExcessPropertyChecking.ts, 68, 1))
201
+ }
202
+
203
+ const TEST_VALUE: ExtendedValue = {
204
+ >TEST_VALUE : Symbol(TEST_VALUE, Decl(nestedExcessPropertyChecking.ts, 82, 5))
205
+ >ExtendedValue : Symbol(ExtendedValue, Decl(nestedExcessPropertyChecking.ts, 76, 1))
206
+
207
+ items: [
208
+ >items : Symbol(items, Decl(nestedExcessPropertyChecking.ts, 82, 35))
209
+
210
+ {id: 1, description: null},
211
+ >id : Symbol(id, Decl(nestedExcessPropertyChecking.ts, 84, 9))
212
+ >description : Symbol(description, Decl(nestedExcessPropertyChecking.ts, 84, 15))
213
+
214
+ {id: 2, description: 'wigglytubble'},
215
+ >id : Symbol(id, Decl(nestedExcessPropertyChecking.ts, 85, 9))
216
+ >description : Symbol(description, Decl(nestedExcessPropertyChecking.ts, 85, 15))
217
+
218
+ ]
219
+ };
220
+
0 commit comments