Replies: 1 comment
-
Unfortunately, this is TypeScript limitation :(. Reflection cannot infer the correct type for this default value. This is probably in conflict with some Lint rules. I'd say that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Let's assume we have following property both in model and entity:
If not doing anything special and trying to map for example model to entity, this prop is going to be mapped as anonymous
object
...Which is really strange behavior as for me.
The only way for fixing this issue is specifying the
typeFn
explicitly on both sides:Is there any better solution for this issue?
And perhaps it makes sense to throw an exception on mapper configuration with clear description?
Beta Was this translation helpful? Give feedback.
All reactions