Type Alias EnumValueMap<E, T>

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

A type that identifies an object whose property values are mapped to the resulting values of the source objects keys.

Type Parameters

  • E = any

    The source type which identifies the keys.

  • T = {
        readonly [key in keyof E]: E[keyof E]
    }

    The resulting type with the keys from the source type.

    Returned from createEnumValueMap