Skip to content

Commit 83a40d2

Browse files
authored
Merge pull request #1347 from jrbytes/instanceToInstanceReadme
update old classToClass name to instanceToInstance in readme
2 parents 8e08148 + 943f573 commit 83a40d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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';
244244
let photo = classToPlain(photo);
245245
```
246246

247-
### classToClass[](#table-of-contents)
247+
### instanceToInstance[](#table-of-contents)
248248

249249
This method transforms your class object into a new instance of the class object.
250250
This 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

257257
You can also use an `ignoreDecorators` option in transformation options to ignore all decorators your classes are using.

0 commit comments

Comments
 (0)