Skip to content

Commit 93e7bef

Browse files
committed
fix type error with MongoQueryObject's $type property
1 parent 412ee2f commit 93e7bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ type MongoObject = { [k: string]: MongoValue, [k: `$${string}`]: never }
703703
type MongoQueryValue = MongoPrimitive | MongoQueryValue[] | MongoQueryObject
704704

705705
type MongoQueryObject =
706-
{ [k: string]: MongoQueryValue, [k: `$${string}`]: MongoValue, $type?: keyof MongoTypeStringsToTypes | (string & {}) }
706+
{ [k: string]: MongoQueryValue, [k: `$${string}`]: MongoValue } & { $type?: keyof MongoTypeStringsToTypes | (string & {}) }
707707

708708
type MongoTypeStringsToTypes = {
709709
double: number

0 commit comments

Comments
 (0)