Skip to content

Commit

Permalink
fix(index.d.ts): one more test fix re: #9850
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Mar 3, 2021
1 parent b8b29f7 commit 64739b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ declare module 'mongoose' {

/** Defines or retrieves a model. */
model<T extends Document>(name: string, schema?: Schema<T>, collection?: string): Model<T>;
model<T extends Document, U extends Model<T, TQueryHelpers>, TQueryHelpers = undefined>(
model<T extends Document, U extends Model<T, TQueryHelpers>, TQueryHelpers = {}>(
name: string,
schema?: Schema<T, U, TQueryHelpers>,
collection?: string,
Expand Down

0 comments on commit 64739b5

Please sign in to comment.