mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
register takes a document(return type of new Model)
I kept running into errors with the file, the register function takes a Document, generated from calling new Model. This removes the wrong error.
This commit is contained in:
committed by
GitHub
parent
9400597ae8
commit
20b7c6f1df
+1
-1
@@ -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