You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `@TransformMethod` | `@TransformMethod({ groups: ["user"] })` | Transform the method return with classToPlain and expose the properties on the class.
596
+
| `@TransformClassToPlain` | `@TransformClassToPlain({ groups: ["user"] })` | Transform the method return with classToPlain and expose the properties on the class.
597
+
| `@TransformClassToClass` | `@TransformClassToClass({ groups: ["user"] })` | Transform the method return with classToClass and expose the properties on the class.
597
598
598
-
The `@TransformMethod` decorator accept 2 optional arguments.
599
-
1. ClassTransformOptions - The transform options like groups, version, name
600
-
2. the method to do the transform - classToPlain or classToClass
599
+
The above decorators accept one optional argument:
600
+
ClassTransformOptions - The transform options like groups, version, name
0 commit comments