Skip to content

Commit 7d805ac

Browse files
capajMTschannett
authored andcommitted
fixes a missing param in readme code sample
1 parent a650d9f commit 7d805ac

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)