Skip to content

Commit

Permalink
fix(index.d.ts): rename map() -> transform() to line up with chan…
Browse files Browse the repository at this point in the history
…ge in v6.0

Fix #11161
  • Loading branch information
vkarpov15 committed Jan 6, 2022
1 parent cee300e commit 9514b2e
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 @@ -2337,7 +2337,7 @@ declare module 'mongoose' {
* Runs a function `fn` and treats the return value of `fn` as the new value
* for the query to resolve to.
*/
map<MappedType>(fn: (doc: ResultType) => MappedType): QueryWithHelpers<MappedType, DocType, THelpers, RawDocType>;
transform<MappedType>(fn: (doc: ResultType) => MappedType): QueryWithHelpers<MappedType, DocType, THelpers, RawDocType>;

/** Specifies an `$maxDistance` query condition. When called with one argument, the most recent path passed to `where()` is used. */
maxDistance(val: number): this;
Expand Down

0 comments on commit 9514b2e

Please sign in to comment.