a schema that accepts a limited set of strings
Rest
enum is a reserved word in typescript, so this is called enumeration.
enum
const schema = enumeration("a", "b", "c");schema.guard("a"); Copy
const schema = enumeration("a", "b", "c");schema.guard("a");
a schema that accepts a limited set of strings