Skip to content

Commit

Permalink
Merge pull request #14371 from sderrow/sderrow/select-type-fix
Browse files Browse the repository at this point in the history
Record<string, string> as valid query `select` argument
  • Loading branch information
vkarpov15 committed Feb 22, 2024
2 parents f1ed13f + 7ed2f6a commit 31e0a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/query.d.ts
Expand Up @@ -647,7 +647,7 @@ declare module 'mongoose' {

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

0 comments on commit 31e0a69

Please sign in to comment.