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