Constructs an enum-like type, with members of the names specified in 'values'
const Color = createBitFlagsEnum(['Red', 'Green', 'Blue'] as const) Copy
const Color = createBitFlagsEnum(['Red', 'Green', 'Blue'] as const)
an array containing the string names for the members of the constructed 'enum'. The array must be declared with as const.
as const
Generated using TypeDoc
Constructs an enum-like type, with members of the names specified in 'values'
Example