Skip to content

Commit 78a78e6

Browse files
authored
seperate overrides
1 parent 0fc2e5c commit 78a78e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/models.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ declare module 'mongoose' {
184184
castObject(obj: AnyObject, options?: { ignoreCastErrors?: boolean }): TRawDocType;
185185

186186
/* Apply defaults to the given document or POJO. */
187-
applyDefaults(obj: AnyObject|TRawDocType): TRawDocType;
187+
applyDefaults(obj: AnyObject): AnyObject;
188+
applyDefaults(obj: TRawDocType): TRawDocType;
188189

189190
/**
190191
* Sends multiple `insertOne`, `updateOne`, `updateMany`, `replaceOne`,

0 commit comments

Comments
 (0)