ZeroCho / nodejs-book

Node.js교과서 소스 코드

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[p.807, p.808] TSXXXX 에러 번호 관련 오타 수정

wiseguy77 opened this issue · comments

commented

p.807 맨 아래 "TS2769 에러는 ..." => "TS2322 에러는 ..."
p.808 맨 위 "TS2769 에러를 해결하면 ..." => "TS2322 에러를 해결하면 ..."
로 수정되어야 할 것으로 보입니다.

passport/kakaoStrategy.ts:8:5 - error TS2769: No overload matches this call.
Overload 1 of 2, '(options: StrategyOption, verify: VerifyFunction): Strategy', gave the following error.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
Overload 2 of 2, '(options: StrategyOptionWithRequest, verify: VerifyFunctionWithRequest): Strategy', gave the following error.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.

8 clientID: process.env.KAKAO_ID,

이걸 해결한 것이라서 TS2769 에러가 맞습니다.