Skip to content

Commit 0d42970

Browse files
docs: add options field to @Transform
1 parent 7ecae60 commit 0d42970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,15 @@ it will convert a date value in your photo object to moment date.
759759
The `@Transform` decorator is given more arguments to let you configure how you want the transformation to be done.
760760

761761
```
762-
@Transform((value, obj, type) => value)
762+
@Transform((value, obj, type, options) => value)
763763
```
764764

765765
| Argument | Description
766766
|--------------------|---------------------------------------------------------------------------------|
767767
| `value` | The property value before the transformation.
768768
| `obj` | The transformation source object.
769769
| `type` | The transformation type.
770+
| `options` | The options given to the input transformation method.
770771

771772
## Other decorators
772773
| Signature | Example | Description

0 commit comments

Comments
 (0)