fix(forms): Fix typing on FormRecord.#59993
Conversation
edca695 to
2a18887
Compare
Priori to this change, `ɵRawValue` of a `FormRecord` returned a `Partial`. This commit fixes it. fixes angular#59985
2a18887 to
60d2e1f
Compare
|
|
||
| type ValueParam = Parameters<typeof fr.setValue>[0]; | ||
|
|
||
| // This should error if the typing allows partial values |
There was a problem hiding this comment.
Not sure if I understand if the typing allows partial values part (or see it in the test?)
There was a problem hiding this comment.
Without the fix, tsc reports an error on the @ts-expect-error because partial values were allowed.
This makes sure we don't regress to a point were partial values are valid.
thePunderWoman
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
|
This PR was merged into the repository by commit cf36951. The changes were merged into the following branches: main, 19.1.x |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Priori to this change,
ɵRawValueof aFormRecordreturned aPartial. This commit fixes it.fixes #59985