mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
fix(passport-local-mongoose): callbacks signatures
See https://github.com/saintedlama/passport-local-mongoose/blob/master/index.js#L254 and see https://github.com/saintedlama/passport-local-mongoose/blob/master/index.js#L294
This commit is contained in:
Vendored
+2
-2
@@ -20,8 +20,8 @@ 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: T, password: string, cb: (err: any) => void): void;
|
||||
findByUsername(username: string, selectHashSaltFields: boolean, cb: (err: any) => void): any;
|
||||
register(user: T, password: string, cb: (err: any, account: any) => void): void;
|
||||
findByUsername(username: string, selectHashSaltFields: boolean, cb: (err: any, account: any) => void): any;
|
||||
createStrategy(): passportLocal.Strategy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user