Type alias ConstantsWrapper<T, Tag>

ConstantsWrapper<T, Tag>: { tagged: ShallowResolve<Readonly<TagConstantsCandidate<T, Tag>>>; untagged: Readonly<T> }

Transforms a record type into a Constants

Returns

A Constants object type with two keys: tagged and untagged. The former key contains the original record type but tagged and set as read-only, the latter just contains the original record type set as read-only

Type Parameters

Type declaration

Generated using TypeDoc