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
- EC2
- graphql
- 트랜잭션
- 온라인 컨퍼런스
- 회고록
- Branch
- JavaScript
- nestjs
- 1차 프로젝트
- aws
- 콜백함수
- AWSOME DAY
- 위코드
- GitHub
- PlaceHolder
- inner
- docker
- 조인
- typescript
- MySQL
- math함수
- increment
- Git
- Join
- 보안 그룹 규칙
- then
- Merge
- 6ixsense
- full
- INCENSE
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