Skip to content

Commit

Permalink
types(model): add recompileSchema to TypeScript types
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 5, 2024
1 parent d30f557 commit d18878b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@ declare module 'mongoose' {
options?: (mongodb.ReplaceOptions & MongooseQueryOptions<TRawDocType>) | null
): QueryWithHelpers<UpdateWriteOpResult, ResultDoc, TQueryHelpers, TRawDocType, 'replaceOne'>;

recompileSchema(): void;

/** Schema the model uses. */
schema: Schema<TRawDocType>;

Expand Down

0 comments on commit d18878b

Please sign in to comment.