Skip to content

Commit

Permalink
docs: add type to this (mongoose virtuals)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 21, 2024
1 parent 3ac0ce6 commit 2aab24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/mongo.md
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ class Person {
lastName: string;

@Virtual({
get: function () {
get: function (this: Person) {
return `${this.firstName} ${this.lastName}`;
},
})
Expand Down

0 comments on commit 2aab24b

Please sign in to comment.