Skip to content

v3.1.1

Choose a tag to compare

@shijistar shijistar released this 22 Oct 02:59
· 66 commits to master since this release

Features

  • ✨ Introduce meta-only mode in Enum creation, allowing the creation of Enums without value and label fields. This is useful for scenarios where only metadata is needed for enum items.
  • ✨ Implementation instanceof operator of Enum method, and add type guard to provide type narrowing functionality. This allows you to use instanceof to check if an object is an enum object created by Enum.
  • ✨ Add type guard to Enum.has method.
  • 🛠️ Allow the type extending for Enum.name, just like enum labels.
  • 📝 Add documentation for TypeScript 5.0 upgrade instructions