Type alias ObjectMapIteratee<Key, Value, TransformedResult>

ObjectMapIteratee<Key, Value, TransformedResult>: ((entry) => TransformedResult)

Iteratee Type.

Type Parameters

  • Key extends AnyObjectIndexer

    Type for the entry's key passed in params.

  • Value

    Type for the entry's value passed in params.

  • TransformedResult extends [AnyObjectIndexer, unknown]

    Return type of the iteratee. Must be an array of 2 elements [key, value].

Type declaration

Returns

The transformation of the entry in the same shape (key-value pair).

Generated using TypeDoc