diff --git a/goldens/public-api/forms/forms.md b/goldens/public-api/forms/forms.md index eaa76df8e88..d6e5aa884a0 100644 --- a/goldens/public-api/forms/forms.md +++ b/goldens/public-api/forms/forms.md @@ -142,6 +142,9 @@ export class AbstractFormGroupDirective extends ControlContainer implements OnIn static ɵfac: i0.ɵɵFactoryDeclaration; } +// @public +export type AnyForUntypedForms = any; + // @public export interface AsyncValidator extends Validator { validate(control: AbstractControl): Promise | Observable; diff --git a/packages/forms/src/forms.ts b/packages/forms/src/forms.ts index 326b9621c28..712f8c413f8 100644 --- a/packages/forms/src/forms.ts +++ b/packages/forms/src/forms.ts @@ -47,4 +47,20 @@ export {AbstractControl, AbstractControlOptions, FormArray, FormControl, FormCon export {NG_ASYNC_VALIDATORS, NG_VALIDATORS, Validators} from './validators'; export {VERSION} from './version'; +/** + * `AnyForUntypedForms` is an alias for `any` used as part of the typed forms + * migration. + * + * `AnyForUntypedForms` was inserted into your code automatically as part of a migration. To + * continue opting out of strong types, simply replace it with `any`. To opt-in to typed forms, + * remove + * `` from your call site. + * + * This symbol is currently unused. Please do not use it. These docs will be updated when this + * symbol is in use. + * + * @publicApi + */ +export type AnyForUntypedForms = any; + export * from './form_providers';