UNPKG

@adyen/kyc-components

Version:

`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar

9 lines (8 loc) 444 B
import type { CountryCode } from '../core/models/country-code'; export type PerCountry<T> = Partial<Record<CountryCode, T>>; export type PerCountryWithDefault<T> = PerCountry<T> & { default: 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>>>>;