Skip to content

Commit

Permalink
types(query): add options param to distinct() re: #8006
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Aug 8, 2024
1 parent d94d8d3 commit f6be45a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/query.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ declare module 'mongoose' {
/** Creates a `distinct` query: returns the distinct values of the given `field` that match `filter`. */
distinct<DocKey extends string, ResultType = unknown>(
field: DocKey,
filter?: FilterQuery<RawDocType>
filter?: FilterQuery<RawDocType>,
options?: QueryOptions<DocType>
): QueryWithHelpers<
Array<
DocKey extends keyof WithLevel1NestedPaths<DocType>
Expand Down

0 comments on commit f6be45a

Please sign in to comment.