Skip to content

Commit

Permalink
Merge pull request #11176 from EugeneKorshenko/ts-projection_return_type
Browse files Browse the repository at this point in the history
types: Fix return type of `projection` method
  • Loading branch information
vkarpov15 authored Jan 4, 2022
2 parents 234f21d + a455e18 commit 9dcbe71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2403,7 +2403,7 @@ declare module 'mongoose' {
populate<Paths = {}>(options: PopulateOptions | Array<PopulateOptions>): QueryWithHelpers<UnpackedIntersection<ResultType, Paths>, DocType, THelpers, RawDocType>;

/** Get/set the current projection (AKA fields). Pass `null` to remove the current projection. */
projection(fields?: any | null): any;
projection(fields?: any | null): this;

/** Determines the MongoDB nodes from which to read. */
read(pref: string | mongodb.ReadPreferenceMode, tags?: any[]): this;
Expand Down

0 comments on commit 9dcbe71

Please sign in to comment.