Skip to content

Commit

Permalink
feat(ng-core): Deprecate WrappedFormControlSuperclass to encourage …
Browse files Browse the repository at this point in the history
…type safe alternatives
  • Loading branch information
ersimont committed Apr 15, 2023
1 parent f8a3075 commit bd78e3e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bd78e3e

Please sign in to comment.