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
2222 - [ plainToClass] ( #plaintoclass )
2323 - [ plainToClassFromExist] ( #plaintoclassfromexist )
2424 - [ classToPlain] ( #classtoplain )
25- - [ classToClass ] ( #classtoclass )
25+ - [ instanceToInstance ] ( #instanceToInstance )
2626 - [ serialize] ( #serialize )
2727 - [ deserialize and deserializeArray] ( #deserialize-and-deserializearray )
2828- [ Enforcing type-safe instance] ( #enforcing-type-safe-instance )
@@ -244,14 +244,14 @@ import { classToPlain } from 'class-transformer';
244244let photo = classToPlain (photo );
245245```
246246
247- ### classToClass [ ⬆] ( #table-of-contents )
247+ ### instanceToInstance [ ⬆] ( #table-of-contents )
248248
249249This method transforms your class object into a new instance of the class object.
250250This may be treated as deep clone of your objects.
251251
252252``` typescript
253- import { classToClass } from ' class-transformer' ;
254- let photo = classToClass (photo );
253+ import { instanceToInstance } from ' class-transformer' ;
254+ let photo = instanceToInstance (photo );
255255```
256256
257257You 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