Commit 44f5ae2
authored
Update part9c.md
The original code gives an error because you set the return type to be "DiaryEntry[]" but the res actually returns values from "getNonSensitiveEntries()" which has a "NonSensitiveDiaryEntry" type(without the "comment" property"). It gave an error - 'comment' is declared here. The fix is to set the "NonSensitiveDiaryEntry[]" type instead of "DiaryEntry[]" type.1 parent bd51f89 commit 44f5ae2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
| 842 | + | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
| 845 | + | |
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| |||
0 commit comments