Skip to content

Commit 36384e7

Browse files
authored
add missing Type for applyDefaults
1 parent c97d91c commit 36384e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

types/models.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ 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|TRawDocType): TRawDocType;
188+
186189
/**
187190
* Sends multiple `insertOne`, `updateOne`, `updateMany`, `replaceOne`,
188191
* `deleteOne`, and/or `deleteMany` operations to the MongoDB server in one

0 commit comments

Comments
 (0)