angular-docs-cn/packages/forms/src
Andrew Kushnir 246de9aaad fix(forms): improve types of directive constructor arguments (#38944)
Prior to this change, the `validators` and `asyncValidators` fields of a few Forms directives
were typed as `any[]`. This commit updates the types and makes them consistent for all directives
in the Forms package.

BREAKING CHANGE:

Directives in the `@angular/forms` package used to have `any[]` as a type of `validators` and
`asyncValidators` arguments in constructors. Now these arguments are properly typed, so if your
code relies on directive constructor types it may require some updates to improve type safety.

PR Close #38944
2020-10-06 10:14:21 -07:00
..
directives fix(forms): improve types of directive constructor arguments (#38944) 2020-10-06 10:14:21 -07:00
directives.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
form_builder.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
form_providers.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
forms.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
model.ts fix(forms): include null in .parent of abstract control (#32671) 2020-10-05 09:30:44 -07:00
validators.ts perf(forms): use internal `ngDevMode` flag to tree-shake error messages in prod builds (#37821) 2020-08-24 09:26:28 -07:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00