We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c7884 commit 5e332afCopy full SHA for 5e332af
src/TransformOperationExecutor.ts
@@ -116,6 +116,8 @@ export class TransformOperationExecutor {
116
} else if (!!getGlobal().Buffer && (targetType === Buffer || value instanceof Buffer) && !isMap) {
117
if (value === null || value === undefined) return value;
118
return Buffer.from(value);
119
+ } else if (!isMap && value !== null && typeof value === 'object' && typeof value.then === 'function') {
120
+ return value; // skip promise transformation
121
} else if (typeof value === 'object' && value !== null) {
122
// try to guess the type
123
if (!targetType && value.constructor !== Object /* && TransformationType === TransformationType.CLASS_TO_PLAIN*/)
0 commit comments