UNPKG

forms-reactive

Version:

Reactive Form Web Component

21 lines (20 loc) 720 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { normalizeValidators, Validators } from "../validators"; // tslint:disable-next-line: prefer-array-literal export function composeValidators(validators) { return validators != null ? Validators.compose(normalizeValidators(validators)) : null; } // tslint:disable-next-line: prefer-array-literal export function composeAsyncValidators(validators) { return validators != null ? Validators.composeAsync(normalizeValidators(validators)) : null; } //# sourceMappingURL=shared.js.map