Skip to content

Commit

Permalink
fix: remove duplicated 'exists' method in Model interface in models.d…
Browse files Browse the repository at this point in the history
….ts (#13818)
  • Loading branch information
ohzeno authored Sep 3, 2023
1 parent 17a0cfe commit 5cfacc4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions types/models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,6 @@ declare module 'mongoose' {
TRawDocType,
'findOne'
>;
exists(filter: FilterQuery<TRawDocType>): QueryWithHelpers<
{ _id: InferId<TRawDocType> } | null,
THydratedDocumentType,
TQueryHelpers,
TRawDocType,
'findOne'
>;

/** Creates a `find` query: gets a list of documents that match `filter`. */
find<ResultDoc = THydratedDocumentType>(
Expand Down

0 comments on commit 5cfacc4

Please sign in to comment.