Types
@system-inc/base-foundation · 515c140 · 6 symbols
EnumLike
type
Shapes accepted by VerifyIsEnum:
- a TypeScript
enum(compiles to an object) - a
constobject literal mapping names to primitive values - a plain array of primitives
Element types are constrained to string | number because
Array.prototype.includes — used under the hood — only handles
value equality correctly for primitives. Object arrays would
silently fail with reference equality, so they're rejected at
compile time.
IPVersion
type
PhoneRegion
type
RuleDecorator
type
Resolves to the right decorator shape for the given options type.
UUIDVersion
type