Hello World

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

generic 1

[Typescript] Generic을 활용한 class constructor 간소화하기

0. Table Of Contents 0. Table Of Contents 1. 서론 2. 이번 문제의 key는 왜 Generic인가? 3. Generic 4. Generic Type (Utility Type) 4.1. Partial 4.2. Pick 5. 최종 적용 코드 1. 서론 class 정의시, constructor를 정의하곤 했다. 일반적인 constructor를 생성시, 아래와 같은 형태를 띈다 export class ModbusConnection { constructor(modbusClient: ModbusRTU, deviceId: any, ipAddress: string, modelId: any, nestedDeviceIdList: Device[]) { this.modbusClient = ..

IT/TypeScript 2023.05.26
이전
1
다음
더보기
프로필사진

Hello World

삽질기록 아카이브

  • 분류 전체보기 (45)
    • IT (3)
      • Cloud (11)
      • Java Spring (6)
      • OpenSource (4)
      • TypeScript (1)
      • Git (1)
      • Algorithm (2)
      • Security (1)
      • NOSQL (7)
      • 삽질 로그 (2)
      • RDB (0)
      • 미들웨어 (1)
      • FastAPI (0)
      • nestJS (0)
    • 회고 (3)
    • 시험후기 (0)

Tag

mongodb index, ASGI vs WSGI, ASGI, AWS, Spring, FaaS사용시 주의점, Generic Type, utility type, DynamoDB 설계, mongodb performance, 삽질, mongodb전략, deadqueue, Servlet, gcp cloudfunction, dataordering, Kafka, env parsing, 삽질로그, MongoDB,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바