mongoose 9.10.0 → 9.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/aggregate.d.ts +1 -1
- package/types/document.d.ts +1 -1
- package/types/populate.d.ts +1 -1
- package/types/schematypes.d.ts +2 -2
package/package.json
CHANGED
package/types/aggregate.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ declare module 'mongoose' {
|
|
|
125
125
|
* Binds this aggregate to a model.
|
|
126
126
|
* @param model the model to which the aggregate is to be bound
|
|
127
127
|
*/
|
|
128
|
-
model(model: Model<any>): this;
|
|
128
|
+
model(model: Model<any, any, any, any>): this;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Returns the current model bound to this aggregate object
|
package/types/document.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ declare module 'mongoose' {
|
|
|
252
252
|
|
|
253
253
|
/** Populates document references. */
|
|
254
254
|
populate<Paths = {}>(path: string | PopulateOptions | (string | PopulateOptions)[]): Promise<PopulateDocumentResult<this, Paths, PopulatedPathsDocumentType<DocType, Paths>, DocType>>;
|
|
255
|
-
populate<Paths = {}>(path: string, select?: string | AnyObject, model?: Model<any>, match?: AnyObject, options?: PopulateOptions): Promise<PopulateDocumentResult<this, Paths, PopulatedPathsDocumentType<DocType, Paths>, DocType>>;
|
|
255
|
+
populate<Paths = {}>(path: string, select?: string | AnyObject, model?: Model<any, any, any, any>, match?: AnyObject, options?: PopulateOptions): Promise<PopulateDocumentResult<this, Paths, PopulatedPathsDocumentType<DocType, Paths>, DocType>>;
|
|
256
256
|
|
|
257
257
|
/** Gets _id(s) used during population of the given `path`. If the path was not populated, returns `undefined`. */
|
|
258
258
|
populated(path: string): any;
|
package/types/populate.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare module 'mongoose' {
|
|
|
60
60
|
/** query conditions to match */
|
|
61
61
|
match?: any;
|
|
62
62
|
/** optional model to use for population */
|
|
63
|
-
model?: string | Model<any>;
|
|
63
|
+
model?: string | Model<any, any, any, any>;
|
|
64
64
|
/** by default, Mongoose removes null and undefined values from populated arrays. Use this option to make `populate()` retain `null` and `undefined` array entries. */
|
|
65
65
|
retainNullValues?: boolean;
|
|
66
66
|
/** if true, Mongoose will call any getters defined on the `localField`. By default, Mongoose gets the raw value of `localField`. */
|
package/types/schematypes.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ declare module 'mongoose' {
|
|
|
120
120
|
/**
|
|
121
121
|
* The model that `populate()` should use if populating this path.
|
|
122
122
|
*/
|
|
123
|
-
ref?: string | Model<any> | ((this: any, doc: any) => string | Model<any>);
|
|
123
|
+
ref?: string | Model<any, any, any, any> | ((this: any, doc: any) => string | Model<any, any, any, any>);
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* The path in the document that `populate()` should use to find the model
|
|
@@ -354,7 +354,7 @@ declare module 'mongoose' {
|
|
|
354
354
|
* Set the model that this path refers to. This is the option that [populate](https://mongoosejs.com/docs/populate.html)
|
|
355
355
|
* looks at to determine the foreign collection it should query.
|
|
356
356
|
*/
|
|
357
|
-
ref(ref: string | boolean | Model<any>): this;
|
|
357
|
+
ref(ref: string | boolean | Model<any, any, any, any>): this;
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* Adds a required validator to this SchemaType. The validator gets added
|