Skip to content

Commit 18ddd13

Browse files
committed
test: add extra test case re: code review comments
1 parent 4122b48 commit 18ddd13

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/types/models.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,4 +781,11 @@ async function gh14026() {
781781

782782
const distinctBar = await FooModel.distinct('bar');
783783
expectType<string[]>(distinctBar);
784+
785+
const TestModel = mongoose.model(
786+
'Test',
787+
new mongoose.Schema({ bar: [String] })
788+
);
789+
790+
expectType<string[]>(await TestModel.distinct('bar'));
784791
}

0 commit comments

Comments
 (0)