File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ declare module 'mongoose' {
279
279
*
280
280
* @remarks Search indexes are only supported when used against a 7.0+ Mongo Atlas cluster.
281
281
*/
282
- searchIndex ( description : mongodb . SearchIndexDescription ) : this;
282
+ searchIndex ( description : SearchIndexDescription ) : this;
283
283
284
284
/**
285
285
* Returns a list of indexes that this schema declares, via `schema.index()`
Original file line number Diff line number Diff line change @@ -86,4 +86,6 @@ declare module 'mongoose' {
86
86
expires ?: number | string ;
87
87
weights ?: Record < string , number > ;
88
88
}
89
+
90
+ type SearchIndexDescription = mongodb . SearchIndexDescription ;
89
91
}
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ declare module 'mongoose' {
327
327
* Create an [Atlas search index](https://www.mongodb.com/docs/atlas/atlas-search/create-index/).
328
328
* This function only works when connected to MongoDB Atlas.
329
329
*/
330
- createSearchIndex ( description : mongodb . SearchIndexDescription ) : Promise < string > ;
330
+ createSearchIndex ( description : SearchIndexDescription ) : Promise < string > ;
331
331
332
332
/** Connection the model uses. */
333
333
db : Connection ;
You can’t perform that action at this time.
0 commit comments