Creates an Enum type.
Example usage is shown below.
const T = Type.Enum(['A', 'B', 'C']) // const T = {
// enum: ['A', 'B', 'C']
// }
type T = Static<typeof T> // type T = 'A' | 'B' | 'C'
Use the IsEnum function to guard values of this type.
Type.IsEnum(value) // value is TEnum