Skip to content

Commit

Permalink
types: Fix return type of projection method
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneKorshenko authored Jan 4, 2022
1 parent d5550a5 commit a455e18
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 a455e18

Please sign in to comment.