Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- 온라인 컨퍼런스
- MySQL
- JavaScript
- math함수
- Git
- 콜백함수
- then
- 트랜잭션
- 보안 그룹 규칙
- GitHub
- full
- typescript
- aws
- AWSOME DAY
- Branch
- 회고록
- nestjs
- Join
- 1차 프로젝트
- 위코드
- EC2
- Merge
- increment
- INCENSE
- PlaceHolder
- inner
- graphql
- 조인
- 6ixsense
- docker
Archives
- Today
- Total
목록typescript (1)
코딩 쏙쏙
superPrint 타입의 add 함수를 생성할 때, call signature를 직접 작성해 주었다. a는 number 타입으로,b는 boolean타입으로, c는 string 타입으로, 는 number || boolean || string 타입으로 리턴해주었다. type SuperPrit = { (arr: T[]): T } const superPrit: SuperPrit = (arr) => arr[0] const a = superPrit([1, 2, 3, 4]) const b = superPrit([true, false, true]) const c = superPrit(["a", "b", "c"]) const d = superPrit([1, 2, true, false, "heello"]) const d..
[TypeScript]
2023. 5. 10. 22:20