EnumValues<Member>: readonly Member[] | Record<Member, Member>

If an array, each element in the array is a possible value for the ENUM.

If a record (plain object, typescript enum), it will use the keys as the list of possible values for the ENUM, in the order specified by the Object. This is designed to be used with TypeScript enums, but it can be used with plain objects as well. Because we don't handle any mapping between the enum keys and values, we require that they be the same.

Type Parameters

  • Member extends string