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

14 lines (13 loc) 597 B
import type { ValidationRuleResult } from './types'; export declare class ValidationResult { private validationResults; constructor(results: ValidationRuleResult[]); /** Checks if all validation rules have passed */ get isValid(): boolean; /** Checks if any validation rule returned an error */ hasError(): boolean; /** Returns the first validation result that returned an error */ getError(): ValidationRuleResult; /** Used to add async validation results to the static validation result*/ addError(result: ValidationRuleResult): ValidationRuleResult[]; }