MCPcopy Index your code
hub / github.com/angular/angular / composeValidators

Function composeValidators

packages/forms/src/validators.ts:680–682  ·  view source on GitHub ↗
(validators: Array<Validator | ValidatorFn>)

Source from the content-addressed store, hash-verified

678 * validator function.
679 */
680export function composeValidators(validators: Array<Validator | ValidatorFn>): ValidatorFn | null {
681 return validators != null ? compose(normalizeValidators<ValidatorFn>(validators)) : null;
682}
683
684/**
685 * Merges asynchronous validators into a single validator function.

Callers 4

directives_spec.tsFile · 0.90
_setValidatorsFunction · 0.90
constructorMethod · 0.90
coerceToValidatorFunction · 0.90

Calls 2

composeFunction · 0.85
normalizeValidatorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…