Skip to content

Commit 0aac16a

Browse files
committed
style: fix lint
1 parent 66e0d9f commit 0aac16a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/types/queries.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,9 @@ async function gh15526() {
719719

720720
const selection = ['name'] as const satisfies readonly (keyof UserType)[];
721721

722+
type SelectType = Pick<UserType, (typeof selection)[number]>;
722723
const u1 = await UserModel.findOne()
723-
.select<Pick<UserType, (typeof selection)[number]>>(selection)
724+
.select<SelectType>(selection)
724725
.orFail();
725726
expectType<string | undefined | null>(u1.name);
726727
expectError(u1.age);

0 commit comments

Comments
 (0)