File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,8 @@ declare module 'mongoose' {
508508 statics : { [ F in keyof TStaticMethods ] : TStaticMethods [ F ] } &
509509 { [ name : string ] : ( this : TModelType , ...args : any [ ] ) => unknown } ;
510510
511+ toJSONSchema ( options ?: { useBsonType ?: boolean } ) : Record < string , any > ;
512+
511513 /** Creates a virtual type with the given name. */
512514 virtual < T = HydratedDocument < DocType , TVirtuals & TInstanceMethods , TQueryHelpers > > (
513515 name : keyof TVirtuals | string ,
Original file line number Diff line number Diff line change @@ -300,6 +300,8 @@ declare module 'mongoose' {
300300 /** Declares a full text index. */
301301 text ( bool : boolean ) : this;
302302
303+ toJSONSchema ( options ?: { useBsonType ?: boolean } ) : Record < string , any > ;
304+
303305 /** Defines a custom function for transforming this path when converting a document to JSON. */
304306 transform ( fn : ( value : any ) => any ) : this;
305307
You can’t perform that action at this time.
0 commit comments