sy_develop_note

  • 홈
  • 태그
  • 방명록

intersection 1

[TypeScript] Intersection

Intersection 두 개 이상의 타입을 합쳐 새로운 타입을 만드는 것을 말합니다. Intersection은 '&' 기호를 사용하여 타입을 결합합니다. 이것은 여러 타입의 속성을 모두 갖는 새로운 타입을 생성하는 데 사용됩니다. 간단한 예를 들어보겠습니다. 아래의 두 인터페이스가 있다고 가정해 봅시다. interface Human{ name: string; age: number; } interface Contacts{ phone: string; address: string; } 그리고 Intersection을 사용하여 새로운 타입을 만들어봅시다. type HumanAndContacts = Human & Contacts; let humanAndContacts: HumanAndContacts = { na..

Backend/TypeScript 2023.11.10
이전
1
다음
더보기
프로필사진

sy_develop_note

  • 분류 전체보기
    • Backend
      • Spring
      • Java
      • TypeScript
      • TestCode
      • IntelliJ
    • Data
      • Redis
      • Kafka
      • DataBase
      • MySQL
      • MongoDB
      • PostgreSQL
    • Architecture
      • ContainerTech
      • DesignPatterns
    • Infra
      • Git
      • Linux
    • Web
      • HTTP
    • AI
      • N8N
    • Algorithm
      • CodingTest
    • 개발끄적

Tag

만들면서 배우는 클린 아키텍처, Java, 자바, 코테 문제 풀이, 티스토리챌린지, 프로그래머스 문제 풀이, Baekjoon, java 코테 문제 풀이, typescript, MySQL, Spring, Git, 타입스크립트, 오블완, mongoDB, 깃, 클린 아키텍처, 프로그래머스, 백준, programmers,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
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 © AXZ Corp. All rights reserved.

  • Github

티스토리툴바