nodejs-book
nodejs-book copied to clipboard
[p.818] controllers/auth.ts 의 passport.authenticate 매개변수 타입 오류(cf. 인프런 QnA에서 관련 내용 확인)
- 인프런 QnA에서 관련 내용을 확인 후 해결
- 관련 내용이 책에도 추가되면 좋을 것 같습니다.
controllers/auth.ts:26:35 - error TS7006: Parameter 'authError' implicitly has an 'any' type. 26 passport.authenticate("local", (authError, user, info) => { ~~~~~~~~~ controllers/auth.ts:26:46 - error TS7006: Parameter 'user' implicitly has an 'any' type. 26 passport.authenticate("local", (authError, user, info) => { ~~~~ controllers/auth.ts:26:52 - error TS7006: Parameter 'info' implicitly has an 'any' type. 26 passport.authenticate("local", (authError, user, info) => {