Skip to content

Commit 2aab24b

Browse files
docs: add type to this (mongoose virtuals)
1 parent 3ac0ce6 commit 2aab24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/mongo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ class Person {
662662
lastName: string;
663663

664664
@Virtual({
665-
get: function () {
665+
get: function (this: Person) {
666666
return `${this.firstName} ${this.lastName}`;
667667
},
668668
})

0 commit comments

Comments
 (0)