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

15 lines (14 loc) 941 B
export type RecursiveKeyOf<TObj extends object> = { [TKey in keyof TObj & (string | number)]: RecursiveKeyOfHandleValue<TObj[TKey], `${TKey}`>; }[keyof TObj & (string | number)]; type RecursiveKeyOfInner<TObj extends object> = { [TKey in keyof TObj & (string | number)]: RecursiveKeyOfHandleValue<TObj[TKey], `.${TKey}`>; }[keyof TObj & (string | number)]; type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends any[] ? Text : TValue extends object ? `${Text}${RecursiveKeyOfInner<TValue>}` : Text; /** * @returns A list of only the primitive keys of an object. * Includes those nested within other objects, e.g. `'name.firstName'`. * @param includeUndefined - whether to include properties which are defined but have a value of `undefined`. */ export declare function getNestedPropertyKeys<T extends object>(obj: T, includeUndefined?: boolean, includeFalsy?: boolean): Array<RecursiveKeyOf<T>>; export {};