Commit 688c0d2
committed
🩹 Fix type error for keywords in metadata
The type of the `info` property in the document definition combines the
`InfoProps` and `CustomInfoProps` types. This introduces a type conflict
as the type of the `keywords` property (`string[]`) conflicts with the
type of the values in `CustomInfoProps` (`string`). As a result, an
assignment of the `keywords` property results in a type error.
To fix this problem, we enforce the `XX` prefix for custom keys in the
`info` property, following the recommendation. This could be considered
a breaking change, however, it will only affect custom info attributes
without the recommended `XX` prefix and the resulting type error can
easily be suppressed.1 parent 07fe0c3 commit 688c0d2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments