Closed aleclarson closed 3 weeks ago
Also fixed handling of optional properties when exactOptionalPropertyTypes
is true in your tsconfig.
For example, if the mapped object is of type { a?: number }
, the mapping function will now receive a number
instead of number | undefined
.
Summary
mapValues
was incorrectly handling index signatures at the type level:For any code change,
Does this PR introduce a breaking change?
No