Best way to created strongly typed nested object that uses two “layers” of enums where all enum values are not required?

前端 未结 0 1402
醉梦人生
醉梦人生 2021-02-08 02:33

For example

enum Size {
  Small: \'small\'
  Medium: \'medium\'
  Large: \'large\'
}

enum Weekday {
  Monday: \'Monday\'
  Tuesday: \'Tuesday\'
  ...
}


// Only         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题