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 d67bbbe commit 759a374Copy full SHA for 759a374
src/TransformOperationExecutor.ts
@@ -205,7 +205,7 @@ export class TransformOperationExecutor {
205
if (newValue.constructor.prototype) {
206
const descriptor = Object.getOwnPropertyDescriptor(newValue.constructor.prototype, newValueKey);
207
if ((this.transformationType === TransformationType.PLAIN_TO_CLASS || this.transformationType === TransformationType.CLASS_TO_CLASS)
208
- && (newValue[newValueKey] instanceof Function || (descriptor && !descriptor.set))) // || TransformationType === TransformationType.CLASS_TO_CLASS
+ && (newValue[newValueKey] instanceof Function || (descriptor && !descriptor.writable))) // || TransformationType === TransformationType.CLASS_TO_CLASS
209
continue;
210
}
211
0 commit comments