sy_develop_note

  • 홈
  • 태그
  • 방명록

type vs interface 1

[TypeScript] Type vs Interface

TypeScript에서 Type과 Interface의 차이점에 대해 알아보겠습니다. Type vs Interface // Object 선언할 때 interface IObject { x: number; y: number; } type TObject = { x: number; y: number; } // Function 선언할 때 interface IFunction { (x: number, y: number): number; } type TFunction = (x: number, y: number) => number; interface와 type은 객체나 함수의 타입을 선언하는 데 사용될 수 있습니다. type은 할 수 있지만 interface에서는 할 수 없는 것들 primitive 타입 선언하기 type..

Backend/TypeScript 2024.01.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 코테 문제 풀이, mongoDB, typescript, MySQL, 오블완, programmers, Spring, 티스토리챌린지, 프로그래머스, 타입스크립트, 클린 아키텍처, 자바, 코테 문제 풀이, 만들면서 배우는 클린 아키텍처, Baekjoon, Java, 깃, 프로그래머스 문제 풀이, Git, 백준,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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

티스토리툴바