니들이 그렇게 빨아대는 typescript + nestJS 조합으로 패스포트 공부 중인데, 



import { Strategy } from 'passport-local'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { AuthService } from './auth.service'; @Injectable() export class LocalStrategy extends PassportStrategy(Strategy) { constructor(private authService: AuthService) { super(); } async validate(username: string, password: string): Promise<any> { const user = await this.authService.validateUser(username, password); if (!user) { throw new UnauthorizedException(); } return user; } }


이 코드 만들려고 하는데, 

"extends PassportStrategy(Strategy)" 했음에도 불구하고 

vscode 에서 validate 메소드 하나 찾지 못하고 메소드 시그니처 하나 자동완성 해주지 못하는 것 보고 

자바스크립트건 타입스크립트건 답이 없다는 것을 다시한번 뼈저리게 느꼈다.


진짜 이런 구린 플랫폼으로 프로덕션을 만드는 자바스크립트 백엔드 개발자들 존경한다.