From 412ee2fb969ca0730307f2b6558ccc8bd1b1be41 Mon Sep 17 00:00:00 2001 From: Daniel Swann Date: Sun, 29 Dec 2024 14:07:41 -0500 Subject: [PATCH] Fixes to type for `_id` in MongoDB documents return with `$db.f` (#223) * The literal `false` gives an error when used as `_id` * Allow querying `_id` with full `#db.ObjectId` structure * Typo fix --- env.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env.d.ts b/env.d.ts index 729e8ea..cde02f3 100644 --- a/env.d.ts +++ b/env.d.ts @@ -720,8 +720,8 @@ type MongoTypeStringsToTypes = { type MongoTypeString = keyof MongoTypeStringsToTypes type MongoTypeNumber = -1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 18 | 19 | 127 -type MongoId = Exclude | MongoObjectId | MongoObject -type MongoQueryId = Exclude | MongoQueryObject +type MongoId = Exclude | MongoObjectId | MongoObject +type MongoQueryId = Exclude | MongoObjectId | MongoQueryObject type MongoDocument = MongoObject & { _id?: MongoId } type MongoQueryType = { -- knotmirror 0.0.1