본문 바로가기

코딩 쏙쏙

검색하기
코딩 쏙쏙
프로필사진 두두만두

  • 분류 전체보기 (25)
    • [Dev_Study] (7)
    • [Manual] (2)
    • [MySQL] (5)
    • [JavaScript] (3)
    • 회고록 (1)
    • [AWS] (4)
    • [Docker] (2)
    • [TypeScript] (1)
    • [NestJs] (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 콜백함수
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록[TypeScript] (1)

코딩 쏙쏙

[TypeScript] Placeholder

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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바