mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Remove model type parameter and overload.
This commit is contained in:
+2
-8
@@ -48,17 +48,11 @@ declare module 'mongoose' {
|
||||
paginate(query?: Object, options?: PaginateOptions, callback?: (err: any, result: PaginateResult<T>) => void): Promise<PaginateResult<T>>;
|
||||
}
|
||||
|
||||
export function model<T extends Document>(
|
||||
export function model(
|
||||
name: string,
|
||||
schema?: Schema,
|
||||
collection?: string,
|
||||
skipInit?: boolean): PaginateModel<T>;
|
||||
|
||||
export function model<T extends Document, U extends PaginateModel<T>>(
|
||||
name: string,
|
||||
schema?: Schema,
|
||||
collection?: string,
|
||||
skipInit?: boolean): U;
|
||||
skipInit?: boolean): PaginateModel<any>;
|
||||
}
|
||||
|
||||
declare module 'mongoose-paginate-v2' {
|
||||
|
||||
Reference in New Issue
Block a user