Skip to content

Commit 31e0a69

Browse files
authored
Merge pull request #14371 from sderrow/sderrow/select-type-fix
Record<string, string> as valid query `select` argument
2 parents f1ed13f + 7ed2f6a commit 31e0a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/query.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ declare module 'mongoose' {
647647

648648
/** Specifies which document fields to include or exclude (also known as the query "projection") */
649649
select<RawDocTypeOverride extends { [P in keyof RawDocType]?: any } = {}>(
650-
arg: string | string[] | Record<string, number | boolean | object>
650+
arg: string | string[] | Record<string, number | boolean | string | object>
651651
): QueryWithHelpers<
652652
IfEquals<
653653
RawDocTypeOverride,

0 commit comments

Comments
 (0)