@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.
6 lines (5 loc) • 371 B
TypeScript
import type { CountryCode } from '../types/datasets/country-code';
export type PerCountry<T> = Partial<Record<CountryCode, T>>;
export type PerCountryAndOtherDiscriminant<T, Discriminant extends string, IncludeDefault extends boolean = true> = Partial<Record<CountryCode, (IncludeDefault extends true ? {
default: T;
} : object) & Partial<Record<Discriminant, T>>>>;