Skip to content

Commit 7aac667

Browse files
committed
loosen MongoObject to no longer disallow property names that begin with $
1 parent 7696939 commit 7aac667

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
@@ -699,7 +699,7 @@ type Nullsec = Lowsec & PlayerNullsec & {
699699
// database
700700
type MongoPrimitive = null | boolean | number | Date | string
701701
type MongoValue = MongoPrimitive | MongoValue[] | MongoObject
702-
type MongoObject = { [k: string]: MongoValue, [k: `$${string}`]: never }
702+
type MongoObject = Record<string, MongoValue>
703703
type MongoQueryValue = MongoPrimitive | MongoQueryValue[] | MongoQueryObject
704704

705705
type MongoQueryObject =

0 commit comments

Comments
 (0)