File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Source code is available [here](https://github.com/pleerock/class-transformer-de
22
22
- [ plainToClass] ( #plaintoclass )
23
23
- [ plainToClassFromExist] ( #plaintoclassfromexist )
24
24
- [ classToPlain] ( #classtoplain )
25
- - [ classToClass ] ( #classtoclass )
25
+ - [ instanceToInstance ] ( #instanceToInstance )
26
26
- [ serialize] ( #serialize )
27
27
- [ deserialize and deserializeArray] ( #deserialize-and-deserializearray )
28
28
- [ Enforcing type-safe instance] ( #enforcing-type-safe-instance )
@@ -244,14 +244,14 @@ import { classToPlain } from 'class-transformer';
244
244
let photo = classToPlain (photo );
245
245
```
246
246
247
- ### classToClass [ ⬆] ( #table-of-contents )
247
+ ### instanceToInstance [ ⬆] ( #table-of-contents )
248
248
249
249
This method transforms your class object into a new instance of the class object.
250
250
This may be treated as deep clone of your objects.
251
251
252
252
``` typescript
253
- import { classToClass } from ' class-transformer' ;
254
- let photo = classToClass (photo );
253
+ import { instanceToInstance } from ' class-transformer' ;
254
+ let photo = instanceToInstance (photo );
255
255
```
256
256
257
257
You can also use an ` ignoreDecorators ` option in transformation options to ignore all decorators your classes are using.
You can’t perform that action at this time.
0 commit comments