Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 26, 2024
1 parent 00314a0 commit e0b556f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/types/querycursor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ async function gh14374() {
const ParentModel = model<Parent>(
'Parent',
new Schema({
child: { type: Schema.Types.ObjectId, ref: 'Child' },
name: String
child: { type: Schema.Types.ObjectId, ref: 'Child' },
name: String
})
)
);

interface Child {
name: string
}
const childSchema: Schema = new Schema({ name: String });

// This does not
const cursor = ParentModel.find({}).populate<{ child: Child }>('child').cursor()
const cursor = ParentModel.find({}).populate<{ child: Child }>('child').cursor();
for await (const doc of cursor) {
const _t: string = doc.child.name;
const _t: string = doc.child.name;
}

}
}

0 comments on commit e0b556f

Please sign in to comment.