約1,350,000件1ページ目

日本語のみで絞り込む

2017/5/5 -If you want this to work with string enums, you need to use Object.values(ENUM).includes(ENUM.value) because string enums are not reverse ...

String enums allow you to give a meaningful and readable value when your code runs, independent of the name of the enum member itself. Heterogeneous enums.

2019/7/29 -Enums are a great way to standardize your types. But what if you want string values too?. Tagged with typescript, javascript, webdev.

2024/7/30 -String enums in TypeScript provide readable values for enum members by allowing developers to use string constants instead of numeric ...

String Enums. Enums can also contain strings . This is more common than numeric enums, because of their readability and intent. Example. enum CardinalDirections ...

2026/8/31 -The enum contains both numeric and string values. Heterogeneous enums are supported but are generally discouraged because they reduce ...

2025/1/10 -A common use for string enums is to represent a set of static values, such as a set of options selectable by the user. For example, if we wanted ...

The difference between numeric and string enums is that numeric enum values are auto-incremented, while string enum values need to be individually initialized.

2025/4/29 -Enums were introduced in TypeScript 0.9 (circa 2013) to give developers a type-safe and readable alternative to plain JavaScript constants and " ...

2017/10/27 -TypeScript 2.4 implemented one of the most requested features: string enums, or, to be more precise, enums with string-valued members.