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