Function createBitFlagsEnum

  • Constructs an enum-like type, with members of the names specified in 'values'

    Example

    const Color = createBitFlagsEnum(['Red', 'Green', 'Blue'] as const)
    

    Type Parameters

    • TValues extends readonly string[]

    Parameters

    • values: EnumValues<TValues>

      an array containing the string names for the members of the constructed 'enum'. The array must be declared with as const.

    Returns BitFlagEnumV2<TValues>

Generated using TypeDoc