From 5cfacc41548476cd2b67410bd9d1089b4e489a14 Mon Sep 17 00:00:00 2001 From: ZenoOh <54921900+ohzeno@users.noreply.github.com> Date: Mon, 4 Sep 2023 02:28:44 +0900 Subject: [PATCH] fix: remove duplicated 'exists' method in Model interface in models.d.ts (#13818) --- types/models.d.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/types/models.d.ts b/types/models.d.ts index d0e121f7c28..2b0a5989445 100644 --- a/types/models.d.ts +++ b/types/models.d.ts @@ -473,13 +473,6 @@ declare module 'mongoose' { TRawDocType, 'findOne' >; - exists(filter: FilterQuery): QueryWithHelpers< - { _id: InferId } | null, - THydratedDocumentType, - TQueryHelpers, - TRawDocType, - 'findOne' - >; /** Creates a `find` query: gets a list of documents that match `filter`. */ find(