UNPKG

@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.

14 lines (13 loc) 609 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 | undefined; /** Used to add async validation results to the static validation result*/ addError(result: ValidationRuleResult): ValidationRuleResult[]; }