Home > Mobile >  How to specific key to be one of enum keys?
How to specific key to be one of enum keys?

Time:06-17

For example, to specify an object to have all keys in enum:

enum Sizes {
  Small = 'S',
  Medium = 'M',
  Large = 'L',
  ExtraLarge = 'XL',
}

/**
 *            
  • Related