Skip to content

Commit

Permalink
fix(types): remove "U" generic added in Schema from "Connection.model"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Aug 19, 2022
1 parent adec3de commit d152820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/connection.d.ts
Expand Up @@ -150,7 +150,7 @@ declare module 'mongoose' {
): Model<InferSchemaType<TSchema>, ObtainSchemaGeneric<TSchema, 'TQueryHelpers'>, ObtainSchemaGeneric<TSchema, 'TInstanceMethods'>, {}, TSchema> & ObtainSchemaGeneric<TSchema, 'TStaticMethods'>;
model<T, U, TQueryHelpers = {}>(
name: string,
schema?: Schema<T, U, any, TQueryHelpers, any, any>,
schema?: Schema<T, any, any, TQueryHelpers, any, any>,
collection?: string,
options?: CompileModelOptions
): U;
Expand Down

0 comments on commit d152820

Please sign in to comment.