Skip to content

Commit

Permalink
fix type error with MongoQueryObject's $type property
Browse files Browse the repository at this point in the history
  • Loading branch information
samualtnorman committed Dec 29, 2024
1 parent 412ee2f commit 93e7bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ type MongoObject = { [k: string]: MongoValue, [k: `$${string}`]: never }
type MongoQueryValue = MongoPrimitive | MongoQueryValue[] | MongoQueryObject

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

type MongoTypeStringsToTypes = {
double: number
Expand Down

0 comments on commit 93e7bef

Please sign in to comment.