Skip to content

Commit e3a35c2

Browse files
authored
Merge pull request #14159 from jaypea/patch-1
add missing Type for applyDefaults
2 parents c97d91c + 78a78e6 commit e3a35c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/models.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ declare module 'mongoose' {
183183
/* Cast the given POJO to the model's schema */
184184
castObject(obj: AnyObject, options?: { ignoreCastErrors?: boolean }): TRawDocType;
185185

186+
/* Apply defaults to the given document or POJO. */
187+
applyDefaults(obj: AnyObject): AnyObject;
188+
applyDefaults(obj: TRawDocType): TRawDocType;
189+
186190
/**
187191
* Sends multiple `insertOne`, `updateOne`, `updateMany`, `replaceOne`,
188192
* `deleteOne`, and/or `deleteMany` operations to the MongoDB server in one

0 commit comments

Comments
 (0)