mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
592a12d6c9
The `min` and `max` validation rules previously handled `string` values to accommodate numbers bound to text inputs. However, this is no longer necessary as the control binding itself handles the conversion. This change removes string support from these rules, simplifying the types to `number | null`. The validation logic has been updated to use concrete checks (`value === null || Number.isNaN(value)`) to ensure safe TypeScript narrowing. Associated tests have been updated to: - Remove string-specific validation checks. - Add coverage for text input bindings. - Add coverage for empty input handling (standard behavior where empty sets model to null and skips validation). BREAKING CHANGE: `min` and `max` validation rules no longer support string values. Bound values must be numbers or null. PR Close #68001
public-api/
This directory contains all of the public api goldens for our npm packages we publish to NPM. These are tested on all PRs and commits as part of our bazel tests.
To check or update the public api goldens, run one of the following commands:
pnpm public-api:check
pnpm public-api:update