moomood

  • 홈
  • 태그
  • 방명록

Interface 1

[TypeScript] 오브젝트 타입

1. type 방식 type User = { name:string } type Player = User & { ... } - 장점 : 유연하다. alias 지정이 가능하다. 지정한 값만 가지도록 타입 제한이 가능하다. 2. interface 방식 interface User { name:string } interface Player extends User { ... } 장점 : 객체지향 방식에서 이해가 쉽다. property의 축적이 가능하다.(type 으로는 불가능) // property 축적 예제 interface User { name:string } interface User { firstName:string } interface User { lastName:string } const kim: Use..

FrontEnd/TypeScript 2023.03.04
이전
1
다음
더보기
프로필사진

moomood

  • 분류 전체보기 (24)
    • BackEnd (5)
      • Spring Boot (3)
      • JAVA (2)
    • FrontEnd (18)
      • JavaScript (1)
      • Vue (1)
      • React (4)
      • React Native (7)
      • TypeScript (2)
      • Redux (2)
    • 데이터베이스 (1)
      • mssql (1)

Tag

row합치기, 행합치기, createStore, MySQL, TypeScript, react native, touchable, api요청, TLS 오류, Redux, react, 스프링부트, TLS10, ts-check, 브라우저DB, 해시모드, expo, Java, Pressable, Spring Boot,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/09   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바