Type Alias EnumCls<E>

EnumCls<E>: {
    readonly [key in keyof E extends string | number | symbol
        ? keyof E
        : never]: key extends string
        ? E[key]
        : key
} & {
    readonly [key in keyof E]: E[key]
}

A type that identifies an enum class generated from a constant enum.

Type Parameters

  • E = any

    The constant enum type

    Returned from createEnum