Closed AlexanderFSP closed 2 years ago
FormControl#markAsTouched and others can't handle options argument with onlySelf?: boolean (but it should) due to wrong type annotation.
FormControl#markAsTouched
onlySelf?: boolean
const contol = new FormControl<string>(''); contol.markAsTouched({ onlySelf: true }); // Error: Expected 0 arguments, but got 1.
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
[x] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Build related changes [ ] CI related changes [ ] Documentation content changes [ ] Other... Please describe:
Issue Number: N/A
[ ] Yes [x] No
Run & review this pull request in StackBlitz Codeflow.
FormControl#markAsTouched
and others can't handle options argument withonlySelf?: boolean
(but it should) due to wrong type annotation.PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information