Version 7 causes compilation issues due to 'unexpected any', is this as intended? #377
-
Hi, Not sure if this is working as intended or not, but with version 6.* this code worked perfectly (profile): mapper
.createMap(SomeDto, SomeViewModel)
.forMember(
(destination) => destination.someValue,
mapFrom((source) => new Date(source.someOtherValue))
) (Basically same as in the documentation) But in version 7, this all of a sudden gives me compilation errors like:
It's fixable by supplying the correct types ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Have you changed the type import from automapper/types to automapper/core? It is a breaking change |
Beta Was this translation helpful? Give feedback.
Have you changed the type import from automapper/types to automapper/core? It is a breaking change