We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MongoObjectId
MongoId
1 parent 862576d commit 8ea4b63Copy full SHA for 8ea4b63
env.d.ts
@@ -720,7 +720,7 @@ type MongoTypeStringsToTypes = {
720
721
type MongoTypeString = keyof MongoTypeStringsToTypes
722
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
+type MongoId = Exclude<MongoPrimitive, null> | MongoObjectId | MongoObject
724
type MongoQueryId = Exclude<MongoPrimitive, null> | MongoQueryObject
725
type MongoDocument = MongoObject & { _id?: MongoId }
726
0 commit comments