소개
게시글
질문&답변
2022.02.17
ESLint 가 제대로 적용되는건지 잘 모르겠습니다
저는 이렇게 해결했습니다. https://noogoonaa.tistory.com/62 에러가 너무 많이 뜰 경우 위 링크를 참조해서 ' endOfLine: ' auto ' , //를 추가하면 됨
- 1
- 2
- 497
질문&답변
2021.08.17
ㅇ
저도 안되서 뭔가 했는데 오타가 있었네요 오타가 없는지 잘 확인해보시길 바랍니당!
- 0
- 1
- 159
질문&답변
2021.07.21
만약에 인터페이스 3개를 상속 받았을 경우에 타입가드를 쓴다면
function ThreeTypeGuard ( typeProduct : Samsung | KIA | Apple ) : any { if ((typeProduct as Samsung ) . phonenumber !== undefined ){ return typeProduct as Samsung ; } else if ((typeProduct as KIA ) . carnumber !== undefined ){ return typeProduct as KIA ; } else { return typeProduct as Apple ; } } phone = { name : " abc " , // phonenumber : 123, // carnumber : 123, Applenumber : 123 , } if ( ThreeTypeGuard (phone)){ phone . Applenumber } 이렇게 하면 한개 함수로 3개를 다 처리 할수 있는거 같습니다.
- 1
- 2
- 172
질문&답변
2021.07.15
잘 되긴하는데 빨간줄이 나와서 거슬리네요
= , == , === 개념을 잘 모르시는 분은 https://aboooks.tistory.com/9 여기서 확인 하시길....
- 1
- 2
- 475
스터디
모집완료
2021.07.12 10:55
설정 관련
- 1
- 0
- 144