Skip to content

Commit

Permalink
Merge pull request #11997 from hasezoey/indexweights
Browse files Browse the repository at this point in the history
fix(types): change index "weights" to be more explicit
  • Loading branch information
AbdelrahmanHafez committed Jun 28, 2022
2 parents d488b66 + 793ac47 commit 16b17cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/indexes.d.ts
Expand Up @@ -93,6 +93,6 @@ declare module 'mongoose' {
* ```
*/
expires?: number | string;
weights?: AnyObject;
weights?: Record<string, number>;
}
}

0 comments on commit 16b17cc

Please sign in to comment.