A closed set of values a parameter accepts.
All members are numbers or all are strings; the two never mix. The set is free-form: it does not have to be contiguous or start at zero (-1 | 0 | 1).
-1 | 0 | 1
The declared type name (PaymentType), unique within the module that declares it. For a union of bare literals it is the values joined by |.
PaymentType
|
The members, in declaration order.
Whether the members are numbers or strings.
A closed set of values a parameter accepts.
Remarks
All members are numbers or all are strings; the two never mix. The set is free-form: it does not have to be contiguous or start at zero (
-1 | 0 | 1).