@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
12 lines (11 loc) • 386 B
TypeScript
import type { MappingRecord } from '../mapping/mappingRecord';
/**
* Reverses a {@link MappingRecord}.
*
* @example
* ```ts
* const mapping = {a:1, b:2,c:3};
* reverseMapping(mapping); => {1:'a', 2: 'b', 3: 'c'}
* ```
*/
export declare function reverseMapping<Source extends object, Target extends object>(mapping: MappingRecord<Source, Target>): MappingRecord<Target, Source>;