일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- SSR
- 이분 검색
- 태그된 유니온
- Promise
- Jest
- TS
- 무한 스크롤
- RTK Query
- 리터럴 타입
- 투포인터
- tailwind
- 인터섹션
- autosize
- 결정 알고리즘
- Cypress
- dfs
- useAppDispatch
- recoil
- CORS
- async/await
- CI/CD
- ESlint
- app router
- webpack
- map
- 호이스팅
- 타입 좁히기
- 공변성
- React
- 반공변성
Archives
- Today
- Total
목록구조 분해 할당 (1)
짧은코딩
타입과 값 구분하기
Symbol interface Cylinder { radius: number height: number } const Cylinder = (radius: number, height: number) => ({ radius, height }) Symbol은 이름이 같더라도 속하는 공간에 따라 다른 것을 나타낸다. 일반적으로 type이나 interface 다음에 나오는 심벌은 타입, const이나 let 선언에 쓰이는 것은 값이다. 또는 타입선언(:)이나 단언문(as) 다음에 오는 심벌은 타입, "=" 다음에 오는 모든 것은 값이다. typeof interface Person { first: string last: string } const p: Person = { first: 'Jane', last: 'Ja..
TS/이펙티브 타입스크립트
2023. 2. 10. 02:54