Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 594 Bytes

types.uniontype.enumerableliteraldomain.md

File metadata and controls

17 lines (10 loc) · 594 Bytes

Home > @skunkteam/types > UnionType > enumerableLiteralDomain

UnionType.enumerableLiteralDomain property

The set of valid literals if enumerable.

Signature:

readonly enumerableLiteralDomain: Set<LiteralValue> | undefined;

Remarks

If a Type (only) accepts a known number of literal values, these should be enumerated in this set. A record with such a domain as key-type