Skip to content

Commit c5a8207

Browse files
committed
feat(decorators): add TransformPlainToClass docs
1 parent e95d5ad commit c5a8207

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ it will convert a date value in your photo object to moment date.
596596
|--------------------|------------------------------------------|---------------------------------------------|
597597
| `@TransformClassToPlain` | `@TransformClassToPlain({ groups: ["user"] })` | Transform the method return with classToPlain and expose the properties on the class.
598598
| `@TransformClassToClass` | `@TransformClassToClass({ groups: ["user"] })` | Transform the method return with classToClass and expose the properties on the class.
599+
| `@TransformPlainToClass` | `@TransformPlainToClass(User, { groups: ["user"] })` | Transform the method return with plainToClass and expose the properties on the class.
599600

600601
The above decorators accept one optional argument:
601602
ClassTransformOptions - The transform options like groups, version, name

0 commit comments

Comments
 (0)