@@ -191,7 +191,7 @@ export class TransformOperationExecutor {
191
191
}
192
192
193
193
// if value is an array try to get its custom array type
194
- const arrayType = Array . isArray ( value [ valueKey ] ) ? this . getReflectedType ( targetType , propertyName ) : undefined ;
194
+ const arrayType = Array . isArray ( value [ valueKey ] ) ? this . getReflectedType ( ( targetType as Function ) , propertyName ) : undefined ;
195
195
196
196
// const subValueKey = TransformationType === TransformationType.PLAIN_TO_CLASS && newKeyName ? newKeyName : key;
197
197
const subSource = source ? source [ valueKey ] : undefined ;
@@ -217,14 +217,14 @@ export class TransformOperationExecutor {
217
217
// Get original value
218
218
finalValue = value [ transformKey ] ;
219
219
// Apply custom transformation
220
- finalValue = this . applyCustomTransformations ( finalValue , targetType , transformKey , value , this . transformationType ) ;
220
+ finalValue = this . applyCustomTransformations ( finalValue , ( targetType as Function ) , transformKey , value , this . transformationType ) ;
221
221
// If nothing change, it means no custom transformation was applied, so use the subValue.
222
222
finalValue = ( value [ transformKey ] === finalValue ) ? subValue : finalValue ;
223
223
// Apply the default transformation
224
224
finalValue = this . transform ( subSource , finalValue , type , arrayType , isSubValueMap , level + 1 ) ;
225
225
} else {
226
226
finalValue = this . transform ( subSource , subValue , type , arrayType , isSubValueMap , level + 1 ) ;
227
- finalValue = this . applyCustomTransformations ( finalValue , targetType , transformKey , value , this . transformationType ) ;
227
+ finalValue = this . applyCustomTransformations ( finalValue , ( targetType as Function ) , transformKey , value , this . transformationType ) ;
228
228
}
229
229
230
230
if ( newValue instanceof Map ) {
0 commit comments