Utility type to infer type of key for a labeled enum.
Type of labeled enum.
const LOCALES = Enum({ English: 'en', Czech: 'cs', Slovak: 'sk' });type LocaleKey = InferKey<typeof LOCALES>; // Locale is 'English' | 'Czech' | 'Slovak' Copy
const LOCALES = Enum({ English: 'en', Czech: 'cs', Slovak: 'sk' });type LocaleKey = InferKey<typeof LOCALES>; // Locale is 'English' | 'Czech' | 'Slovak'
Generated using TypeDoc
Utility type to infer type of key for a labeled enum.