https://startup-cto.net/10-bad-typescript-habits-to-break-this-year/
1. strict 모드를 사용하지 않는 것 2. 디폴트 값을 || 로 정의 하는 것 ㅤ→ㅤ??를 쓰거나, 파라미터 단위 폴백 정의할 것 3. any를 타입으로 쓰는 것 ㅤ→ unknown 으로 교체할 것 4. val as SomeType ㅤ→ 타입가드 함수로 체크할 것 5. 테스트에서 as any 사용하는 것 6. Optional 속성 7. 한글자 Generic ㅤ→ 이름만으로 설명가능한 풀 타입 네임 사용 8. Non-boolean boolean 검사 9. !! 연산자 10. != null Text-to-speech function is limited to 200 characters |