-
[Typescript] Argument of type OOO is not assignable to parameter of type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'. ์๋ฌ ํด๊ฒฐ
๐ ๋ฌธ์ ์ํฉ ๋ก๊ทธ์์ ํจ์์ ๋ํ ํ
์คํธ ์ฝ๋๋ฅผ ์ง๋ ๋์ค ์๋ ์๋ฌ์ ๋ง์ฃผํ๋ค. Argument of type OOO is not assignable to parameter of type 'Request'. ์๋ ํ
์คํธํ๋ ค๋ logout ํจ์๋ ์๋์ ๊ฐ์ด ์๊ฒผ๋ค. ///authService.ts const logout = async (req: Request, res: Response) => { req.logout(() => { req.session.destroy(() => { success(res, statusCode.OK, responseMessage.SUCCESS, { session: req.session, }); }); }); }; ๊ทธ๋ฆฌ๊ณ ํ
์คํธ์ฝ๋๋ ๋ค์๊ณผ ๊ฐ๋ค. //authService.t..
WEB/Typescript
2023. 5. 7.