Skip to content

Commit

Permalink
Merge pull request #14159 from jaypea/patch-1
Browse files Browse the repository at this point in the history
add missing Type for applyDefaults
  • Loading branch information
vkarpov15 committed Dec 7, 2023
2 parents c97d91c + 78a78e6 commit e3a35c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/models.d.ts
Expand Up @@ -183,6 +183,10 @@ declare module 'mongoose' {
/* Cast the given POJO to the model's schema */
castObject(obj: AnyObject, options?: { ignoreCastErrors?: boolean }): TRawDocType;

/* Apply defaults to the given document or POJO. */
applyDefaults(obj: AnyObject): AnyObject;
applyDefaults(obj: TRawDocType): TRawDocType;

/**
* Sends multiple `insertOne`, `updateOne`, `updateMany`, `replaceOne`,
* `deleteOne`, and/or `deleteMany` operations to the MongoDB server in one
Expand Down

0 comments on commit e3a35c2

Please sign in to comment.