mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Added an overload for the default mongoose plugin function (#11202)
This fixes typing errors when other plugins (with different types of options) are used on the same model as this one.
This commit is contained in:
committed by
Masahiro Wakame
parent
c404aa6f7b
commit
73e5a50266
@@ -74,6 +74,9 @@ declare module 'mongoose' {
|
||||
plugin: (schema: PassportLocalSchema, options?: PassportLocalOptions) => void,
|
||||
options?: PassportLocalOptions
|
||||
): this;
|
||||
|
||||
// overload for the default mongoose plugin function
|
||||
plugin(plugin: (schema: Schema, options?: Object) => void, opts?: Object): this;
|
||||
}
|
||||
|
||||
export function model<T extends Document>(
|
||||
|
||||
Reference in New Issue
Block a user