Skip to content

Commit f164b44

Browse files
authored
Merge pull request #14342 from FaizBShah/master
Added typescript support for arbitrary fields for the options parameter of Model functions which are of type MongooseQueryOptions
2 parents 6579f93 + 348ec51 commit f164b44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types/query.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ declare module 'mongoose' {
3232
'strictQuery' |
3333
'timestamps' |
3434
'translateAliases'
35-
>;
35+
> & {
36+
[other: string]: any;
37+
};
3638

3739
type ProjectionFields<DocType> = { [Key in keyof DocType]?: any } & Record<string, any>;
3840

0 commit comments

Comments
 (0)