Replies: 1 comment 14 replies
-
how's your mapping ( |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two classes:
and:
Unless I remove the constructor in workday, i get the following error over "typeFn" in Timetable:
Type '() => typeof Workday' is not assignable to type '() => Constructible<any>'. Type 'typeof Workday' is not assignable to type 'Constructible<any>'. Types of parameters 'day' and 'args' are incompatible. Type 'unknown' is not assignable to type 'number'.ts(2322) automap.decorator.d.ts(7, 5): The expected type comes from property 'typeFn' which is declared here on type 'AutoMapOptions'
WeekDay is an enum with number value. If I remove Workday's constructor, there's no error. Do you know why is this happening?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions