Function: mapPayloadFields()
mapPayloadFields<
T>(record,pointers,fn,failures?):T
Apply fn to the value at each payload pointer of record that is present,
and to the payloads of each failure at failures (its details at every
level of its cause chain), returning a copy (the input is not changed).
fn receives the pointer of the value it is given.
Type Parameters
T
T extends Record<string, Json>
Parameters
record
T
pointers
readonly string[]
fn
(value, pointer) => Json
failures?
readonly string[]
Returns
T