Skip to content

Commit 8ea4b63

Browse files
committed
add MongoObjectId to MongoId type union
1 parent 862576d commit 8ea4b63

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
@@ -720,7 +720,7 @@ type MongoTypeStringsToTypes = {
720720

721721
type MongoTypeString = keyof MongoTypeStringsToTypes
722722
type MongoTypeNumber = -1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 | 127
723-
type MongoId = Exclude<MongoPrimitive, null> | MongoObject
723+
type MongoId = Exclude<MongoPrimitive, null> | MongoObjectId | MongoObject
724724
type MongoQueryId = Exclude<MongoPrimitive, null> | MongoQueryObject
725725
type MongoDocument = MongoObject & { _id?: MongoId }
726726

0 commit comments

Comments
 (0)