Skip to content

Commit

Permalink
test: add more rigorous type check for #14374
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 27, 2024
1 parent e0b556f commit d0e970f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/types/querycursor.test.ts
Expand Up @@ -43,7 +43,7 @@ async function gh14374() {
// This does not
const cursor = ParentModel.find({}).populate<{ child: Child }>('child').cursor();
for await (const doc of cursor) {
const _t: string = doc.child.name;
expectType<Child>(doc.child);
}

}

0 comments on commit d0e970f

Please sign in to comment.