TypeScript Typing

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2020 Aug 30 13:40
Editor
Edited
Edited
2025 Nov 18 14:16

Static Type Checking & Static Type Declare

  1. Typescript Variable
    Type Covariance
  1. Parameter
    Contravariance
    when TS compare between functions
TypeScript Types
 
 
TS Utility Types
 
 
TypeScript Type Usages
 
 
 
Typescript Runtime Typing Tools
 
 

Useful Type Controls

Documentation - Mapped Types
When you don't want to repeat yourself, sometimes a type needs to be based on another type.
Documentation - Mapped Types
타입스크립트에서 객체를 "더 안전하게" 순회하는 방법 (feat: 무공변성)
타입스크립트는 구조적 타입 시스템을 따르기 때문에 타입이 '열려' 있다. 타입스크립트에서 '봉인된' 또는 '정확한' 타입을 만드는 방법에는 명목적 타입과 무공변적 타입이 있다. 명목적 타입 시스템은 구조가 같더라도 이름이 다르면 다른 타입으로 구분하는 시스템이다. 무공변적 타입은 정확히 동일한, 타입을 요구하는 타입 호환 방식이다. 명목적 타입과 무공변적 타입을 통해 객체를 보다 안전하게 순회하면서, 구체적인 타입을 얻을 수 있다.
타입스크립트에서 객체를 "더 안전하게" 순회하는 방법 (feat: 무공변성)
 
 
 

Recommendations