Skip to content

Commit

Permalink
fix(types): change index "weights" to only allow "string" keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 28, 2022
1 parent 055c6c6 commit 793ac47
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?: Record<string | number, number>;
weights?: Record<string, number>;
}
}

0 comments on commit 793ac47

Please sign in to comment.