FormGroup.reset() input typings are incorrect #55577
Labels
area: docs
Related to the documentation
area: forms
good first issue
An issue that is suitable for first-time contributors; often a documentation issue.
help wanted
An issue that is suitable for a community contributor (based on its complexity/scope).
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
The example for resetting a FormGroup that is given here does not match the typing of
FormGroup.reset()
. According to the typings, that{value: 'name', disabled: true}
is invalid.The typing of
FormGroup.reset()
should accept{value: T, disabled: boolean}
for a FormControl because that is how the functionality works.Please provide a link to a minimal reproduction of the bug
https://replit.com/@david-snyder-in/Typing-Issues#src/app/app.component.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: