mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 09:49:07 +00:00
Merge pull request #11569 from Jarrku/patch-1
register takes a document(return type of new Model)
This commit is contained in:
@@ -20,7 +20,7 @@ declare module 'mongoose' {
|
||||
authenticate(): (username: string, password: string, cb: (err: any, res: T, error: any) => void) => void;
|
||||
serializeUser(): (user: PassportLocalModel<T>, cb: (err: any) => void) => void;
|
||||
deserializeUser(): (username: string, cb: (err: any) => void) => void;
|
||||
register(user: PassportLocalModel<T>, password: string, cb: (err: any) => void): void;
|
||||
register(user: T, password: string, cb: (err: any) => void): void;
|
||||
findByUsername(username: string, selectHashSaltFields: boolean, cb: (err: any) => void): any;
|
||||
createStrategy(): passportLocal.Strategy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user