There was an error while loading. Please reload this page.
1 parent 036de6b commit 462607cCopy full SHA for 462607c
src/compiler/checker.ts
@@ -6846,9 +6846,10 @@ namespace ts {
6846
return members;
6847
}
6848
6849
- /** Mark an object literal as exempt from the excess properties check.
6850
- * Recursively mark object literal members as exempt.
6851
- * Leave signatures alone since they are not subject to the check.
+ /**
+ * If the the provided object literal is subject to the excess properties check,
+ * create a new that is exempt. Recursively mark object literal members as exempt.
6852
+ * Leave signatures alone since they are not subject to the check.
6853
*/
6854
function getRegularTypeOfObjectLiteral(type: Type): Type {
6855
if (!(type.flags & TypeFlags.FreshObjectLiteral)) {
0 commit comments