Replies: 4 comments 8 replies
-
export const enum Status {
BANNED = 'Banned',
INACTIVE = 'Inactive',
PENDING = 'Pending',
ACTIVE = 'Active',
}; 또한, |
Beta Was this translation helpful? Give feedback.
-
개인적인 견해로는 enum이 어떻게 변환되는지 따로 보지않는 이상 직관적이지 못하다고 여겨 B를 사용하기는 합니다. |
Beta Was this translation helpful? Give feedback.
-
저는 TypeScript를 사용할 때 최근 JavaScript/TypeScript 생태계의 움직임을 봤을 때, TypeScript를 지원하는 방법이 다음과 같이 나아가는 것 같아요.
Node.js 23에 들어간 TypeScript 지원 도 그렇고, TC39 proposal 도 그렇습니다. 그래서 추후 또한, TypeScript의 디자인 방향성을 보면 더 이상 그래서 저는 TypeScript는 JavaScript에 타입 정보를 추가한 정도로 사용하고, 특수 문법들은 사용을 삼가려고 해요. |
Beta Was this translation helpful? Give feedback.
-
TypeScript 5.8에 추가될 예정인 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1️⃣
enum
2️⃣
as const
573 votes ·
Beta Was this translation helpful? Give feedback.
All reactions