ZeroCho / nodejs-book

Node.js교과서 소스 코드

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[p.818] controllers/auth.ts 의 passport.authenticate 매개변수 타입 오류(cf. 인프런 QnA에서 관련 내용 확인)

wiseguy77 opened this issue · comments

commented
  1. 인프런 QnA에서 관련 내용을 확인 후 해결
  2. 관련 내용이 책에도 추가되면 좋을 것 같습니다.

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) => {

801쪽에 @types/passport@1.0.11 설치하라고 추가하기

감사합니다