nodejs-book icon indicating copy to clipboard operation
nodejs-book copied to clipboard

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

Open wiseguy77 opened this issue 1 year ago • 1 comments

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

wiseguy77 avatar Jul 03 '23 03:07 wiseguy77

801쪽에 @types/[email protected] 설치하라고 추가하기

감사합니다

ZeroCho avatar Jul 03 '23 04:07 ZeroCho