
Enumerable String Union Type
지정된 문자열만 사용할 수 있는 문자열 변수를 선언할 때, 문자열 조합 형식 String Union Type을 사용합니다.
type Status = 'Todo' | 'InProgress' | 'Done';
const status: Status = 'Todo'; // ✔️ OK
const status2: Status = 'None'; // ❌ …
지정된 문자열만 사용할 수 있는 문자열 변수를 선언할 때, 문자열 조합 형식 String Union Type을 사용합니다.
type Status = 'Todo' | 'InProgress' | 'Done';
const status: Status = 'Todo'; // ✔️ OK
const status2: Status = 'None'; // ❌ …
…Want to create great .NET class libraries? Confused about .NET Standard, .NET Core, and .NET Framework? Watch this talk to learn how you can easily support multiple platforms with .NET Standard and no compromises, thanks to via multi-targeting. We’ll also