Skip to content

Commit 8971235

Browse files
authored
Fix README example
1 parent c3d0030 commit 8971235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Here is example how it will look like:
102102

103103
```typescript
104104
fetch("users.json").then((users: Object[]) => {
105-
const realUsers = plainToClass(users);
105+
const realUsers = plainToClass(User, users);
106106
// now each user in realUsers is instance of User class
107107
});
108108
```

0 commit comments

Comments
 (0)