My Study/TypeScript

[TypeScript] - 타입 별칭(Type Alias)

handbefore 2024. 10. 13. 19:15

동일한 타입 반복해서 정의하는 일.

코드 중복을 줄이기 위함.

 

타입 별칭(Type Alias)

type 원하는 이름 = 타입 정의

- 배열 형태 바꿔서도 가능