Skip to content

Commit

Permalink
Merge pull request #12299 from hasezoey/syncModelFunctionTypes
Browse files Browse the repository at this point in the history
fix(types): sync single-generic-no-constraint "model" between "index.d.ts" and "connection.d.ts"
  • Loading branch information
vkarpov15 authored Aug 21, 2022
2 parents 7d4e950 + 64a0051 commit 9f6674c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/connection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ declare module 'mongoose' {
collection?: string,
options?: CompileModelOptions
): U;
model<T>(name: string, schema?: Schema<T>, collection?: string, options?: CompileModelOptions): Model<T>;
model<T>(name: string, schema?: Schema<T, any, any> | Schema<T & Document, any, any>, collection?: string, options?: CompileModelOptions): Model<T>;

/** Returns an array of model names created on this connection. */
modelNames(): Array<string>;
Expand Down

0 comments on commit 9f6674c

Please sign in to comment.