Class KeyMap<K, V, I, L>

Map that transforms keys.

K: input key type. V: value type. I: indexable key type. L: lookup key type.

Type Parameters

  • K

  • V

  • I

  • L = K

Hierarchy

  • KeyMap

Constructors

Accessors

Methods

Constructors

  • Constructor.

    Type Parameters

    • K

    • V

    • I

    • L = K

    Parameters

    • keyOf: ((key) => I)

      function to transform input key to indexable key.

        • (key): I
        • Parameters

          • key: K | L

          Returns I

    Returns KeyMap<K, V, I, L>

Accessors

Methods

Generated using TypeDoc