Recursively resolves a mapping config (string / array / object) against named sources, returning a
structure of the same shape with every reference resolved.
Type Parameters
T = Record<string,unknown>
Parameters
mapping: unknown
The mapping config (e.g. { name: 'record.Name', when: 'static:today' }).
sources: Record<string,unknown>
Named sources to resolve references against (e.g. { record, context }).
Recursively resolves a mapping config (string / array / object) against named sources, returning a structure of the same shape with every reference resolved.