From 20b7c6f1df8274e258a6b9231ba62719c0542e2e Mon Sep 17 00:00:00 2001 From: Simon Van den Broeck Date: Wed, 28 Sep 2016 16:50:29 +0200 Subject: [PATCH] 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. --- passport-local-mongoose/passport-local-mongoose.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passport-local-mongoose/passport-local-mongoose.d.ts b/passport-local-mongoose/passport-local-mongoose.d.ts index 6cde58f23d..eabe00f978 100644 --- a/passport-local-mongoose/passport-local-mongoose.d.ts +++ b/passport-local-mongoose/passport-local-mongoose.d.ts @@ -20,7 +20,7 @@ declare module 'mongoose' { authenticate(): (username: string, password: string, cb: (err: any, res: T, error: any) => void) => void; serializeUser(): (user: PassportLocalModel, cb: (err: any) => void) => void; deserializeUser(): (username: string, cb: (err: any) => void) => void; - register(user: PassportLocalModel, 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; }