Skip to content

Commit

Permalink
fix(index.d.ts): add transform to PopulateOptions interface
Browse files Browse the repository at this point in the history
Fix #10061
  • Loading branch information
vkarpov15 committed Mar 31, 2021
1 parent dca1d70 commit 5382408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Expand Up @@ -1036,6 +1036,8 @@ declare module 'mongoose' {
* always set `path` to a document. Inferred from schema by default.
*/
justOne?: boolean;
/** transform function to call on every populated doc */
transform?: (doc: any, id: any) => any;
}

interface ToObjectOptions {
Expand Down

0 comments on commit 5382408

Please sign in to comment.