mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:58:32 -06:00
`getRegularTypeOfObjectLiteral` marks an object literal as non-fresh so that excess object-property errors will not be reported. It is needed so that errors aren't reported when checking assignability to intersections or unions, for example. Previously, the function was not recursive, so nested object literals still erroneously gave the error. Now it's recursive.