Skip to content

Commit f04b24f

Browse files
authored
improve MangoSelector TypeScript type - fixes issue #211 (#212)
1 parent 2699b78 commit f04b24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nano.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ declare namespace nano {
12841284
'$in' | '$nin' | '$size' | '$mod' | '$regex' |
12851285
'$or' | '$and' | '$nor' | '$not' | '$all' | '$allMatch' | '$elemMatch';
12861286
type MangoSelector = {
1287-
[K in MangoOperator]: MangoSelector | MangoValue | MangoValue[];
1287+
[K in MangoOperator | string]: MangoSelector | MangoValue | MangoValue[];
12881288
}
12891289

12901290
// http://docs.couchdb.org/en/latest/api/database/find.html#sort-syntax

0 commit comments

Comments
 (0)