Merge pull request #11569 from Jarrku/patch-1

register takes a document(return type of new Model)
This commit is contained in:
Vladimir Matveev 2016-09-29 12:23:11 -07:00 committed by GitHub
commit 07ce2df4f2

View File

@ -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;
}