Commit 228a485
authored
types: Allow passing undefined for chart options (#11780)
When exactOptionalPropertyTypes, TypeScript distinguishes between the
value undefined and the property not existing. See:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
For Chart.js options, this difference is not important and either
passing undefined or not including it have the same effect.1 parent 5c9e5c6 commit 228a485
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3815 | 3815 | | |
3816 | 3816 | | |
3817 | 3817 | | |
3818 | | - | |
| 3818 | + | |
3819 | 3819 | | |
3820 | 3820 | | |
3821 | 3821 | | |
| |||
3826 | 3826 | | |
3827 | 3827 | | |
3828 | 3828 | | |
3829 | | - | |
| 3829 | + | |
3830 | 3830 | | |
3831 | 3831 | | |
0 commit comments