File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -622,9 +622,8 @@ declare module 'mongoose' {
622622 set < K extends keyof SchemaOptions > ( key : K , value : SchemaOptions < DocType > [ K ] , _tags ?: any ) : this;
623623
624624 /** Adds static "class" methods to Models compiled from this schema. */
625- static < K extends keyof TStaticMethods > ( name : K , fn : TStaticMethods [ K ] ) : this;
626- static ( obj : { [ F in keyof TStaticMethods ] : TStaticMethods [ F ] } ) : this;
627- static ( obj : { [ F in keyof TStaticMethods ] : TStaticMethods [ F ] } & { [ name : string ] : ( this : TModelType , ...args : any [ ] ) => any } ) : this;
625+ static < K extends keyof TStaticMethods > ( name : K , fn : TStaticMethods [ K ] & ( ( this : TModelType , ...args : any [ ] ) => any ) ) : this;
626+ static ( obj : Partial < TStaticMethods > & { [ name : string ] : ( this : TModelType , ...args : any [ ] ) => any } ) : this;
628627 static ( name : string , fn : ( this : TModelType , ...args : any [ ] ) => any ) : this;
629628
630629 /** Object of currently defined statics on this schema. */
You can’t perform that action at this time.
0 commit comments