/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/forms/src/directives/reactive_validation_error.ts
27 строк
723 B
Alex Rickabaugh
refactor(forms): base implementation of custom control binding in NgControl
17 мар 2026, 22:18
17 мар 2026, 22:18
b2f0857
Код
Авторство
О чём код?
/** * @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.dev/license */ import type {AbstractControl} from '../model/abstract_model'; /** * A validation error used when propagating Reactive Forms errors to FVC components. * * @internal */ export class ReactiveValidationError<T = unknown> { readonly kind: string; readonly context: T; readonly control: AbstractControl; readonly message?: string; constructor({kind, context, control}: {kind: string; context: T; control: AbstractControl}) { this.kind = kind; this.context = context; this.control = control; } }