From 462607c8ecf37b4fc397f86eed15ba38623c2081 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Mon, 23 May 2016 14:56:45 -0700 Subject: [PATCH] Improve doc comment --- src/compiler/checker.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index aab95f76d0b..915aa7fb3ed 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6846,9 +6846,10 @@ namespace ts { return members; } - /** Mark an object literal as exempt from the excess properties check. - * Recursively mark object literal members as exempt. - * 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. + * Leave signatures alone since they are not subject to the check. */ function getRegularTypeOfObjectLiteral(type: Type): Type { if (!(type.flags & TypeFlags.FreshObjectLiteral)) {