·branded-types

기본 유형에 의미적 구별이 필요할 때 사용합니다. 문자열이나 숫자 유형이 다른 의미를 가질 때 사용합니다. 명목상 타이핑이 필요할 때 사용하세요.

2설치·0트렌드·@marius-townhouse

설치

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill branded-types

SKILL.md

TypeScript uses structural typing, but sometimes you need nominal typing - values that are distinct because you SAY they are, not because they have different shapes. Brands let you do this without runtime overhead.

You can't actually create a value that is both a string and has a brand property:

Response: Type aliases don't prevent mixing up different string types.

기본 유형에 의미적 구별이 필요할 때 사용합니다. 문자열이나 숫자 유형이 다른 의미를 가질 때 사용합니다. 명목상 타이핑이 필요할 때 사용하세요. 출처: marius-townhouse/effective-typescript-skills.

원본 보기

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill branded-types
카테고리
</>개발 도구
인증됨
최초 등록
2026-02-05
업데이트
2026-02-18

빠른 답변

branded-types이란?

기본 유형에 의미적 구별이 필요할 때 사용합니다. 문자열이나 숫자 유형이 다른 의미를 가질 때 사용합니다. 명목상 타이핑이 필요할 때 사용하세요. 출처: marius-townhouse/effective-typescript-skills.

branded-types 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill branded-types 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/marius-townhouse/effective-typescript-skills