Commit b584d3f
committed
Improve error message for missing props.
Fix an issue where a wrong error (empty record not annotated) was issues when `{}` has type a record without optional fields.
Improve error message when mandatory fields are missing, suggesting it could be a component.1 parent 2ab41fb commit b584d3f
File tree
4 files changed
+20
-8
lines changed- jscomp/ml
- lib/4.06.1
- unstable
4 files changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2168 | 2168 | | |
2169 | 2169 | | |
2170 | 2170 | | |
2171 | | - | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
2172 | 2175 | | |
2173 | 2176 | | |
2174 | 2177 | | |
| |||
3663 | 3666 | | |
3664 | 3667 | | |
3665 | 3668 | | |
3666 | | - | |
| 3669 | + | |
3667 | 3670 | | |
3668 | 3671 | | |
3669 | 3672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41117 | 41117 | | |
41118 | 41118 | | |
41119 | 41119 | | |
41120 | | - | |
| 41120 | + | |
| 41121 | + | |
| 41122 | + | |
| 41123 | + | |
41121 | 41124 | | |
41122 | 41125 | | |
41123 | 41126 | | |
| |||
42612 | 42615 | | |
42613 | 42616 | | |
42614 | 42617 | | |
42615 | | - | |
| 42618 | + | |
42616 | 42619 | | |
42617 | 42620 | | |
42618 | 42621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41117 | 41117 | | |
41118 | 41118 | | |
41119 | 41119 | | |
41120 | | - | |
| 41120 | + | |
| 41121 | + | |
| 41122 | + | |
| 41123 | + | |
41121 | 41124 | | |
41122 | 41125 | | |
41123 | 41126 | | |
| |||
42612 | 42615 | | |
42613 | 42616 | | |
42614 | 42617 | | |
42615 | | - | |
| 42618 | + | |
42616 | 42619 | | |
42617 | 42620 | | |
42618 | 42621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217504 | 217504 | | |
217505 | 217505 | | |
217506 | 217506 | | |
217507 | | - | |
| 217507 | + | |
| 217508 | + | |
| 217509 | + | |
| 217510 | + | |
217508 | 217511 | | |
217509 | 217512 | | |
217510 | 217513 | | |
| |||
218999 | 219002 | | |
219000 | 219003 | | |
219001 | 219004 | | |
219002 | | - | |
| 219005 | + | |
219003 | 219006 | | |
219004 | 219007 | | |
219005 | 219008 | | |
| |||
0 commit comments