Suchjs Official Site

Enumeration

There is no actual enumeration type, but the configuration of key supports this effect to select one expression from multiple types. For details, see enumeration type document

Demo

  • Such.as({ 
        "enum:{1}":[ 
          ":number", 
          ":string:{3,10}", 
          ":date", 
        ] 
      })