From bd78e3e44d3f46d2fa5591014a482c44ab32f5e9 Mon Sep 17 00:00:00 2001 From: ersimont <8042088+ersimont@users.noreply.github.com> Date: Sat, 15 Apr 2023 13:45:30 -0400 Subject: [PATCH] feat(ng-core): Deprecate `WrappedFormControlSuperclass` to encourage type safe alternatives --- .../ng-core/src/lib/forms/wrapped-form-control-superclass.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/ng-core/src/lib/forms/wrapped-form-control-superclass.ts b/projects/ng-core/src/lib/forms/wrapped-form-control-superclass.ts index 800e84d1..d96075b7 100644 --- a/projects/ng-core/src/lib/forms/wrapped-form-control-superclass.ts +++ b/projects/ng-core/src/lib/forms/wrapped-form-control-superclass.ts @@ -2,7 +2,9 @@ import { FormControl } from '@angular/forms'; import { WrappedControlSuperclass } from './wrapped-control-superclass'; /** - * This is a convenience class to make it easier to extend {@linkcode WrappedControlSuperclass} when you specifically want a `FormControl` (as opposed to a `FormArray` or `FormGroup`). + * This class is deprecated because its `control` implementation is not type safe. Transition to a type safe alternative by directly inheriting from {@linkcode WrappedControlSuperclass} and setting up your control with the typing and initial value you need. See the documentation on that class for an example. + * + * @deprecated */ export abstract class WrappedFormControlSuperclass< OuterType,