Skip to content

Commit

Permalink
add missing Type for applyDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypea committed Dec 6, 2023
1 parent c97d91c commit 36384e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ 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|TRawDocType): TRawDocType;

Check failure on line 188 in types/models.d.ts

View workflow job for this annotation

GitHub Actions / Lint TS-Files

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

0 comments on commit 36384e7

Please sign in to comment.