Commit 4ced4ad
authored
Fix types: i18n component ‘tag’ prop can also be boolean ‘false’ (#987)
Passing ‘:tag=false’ to the i18n component renders no tag, but
TypeScript would complain, since the prop type was defined to allow
only strings.
Widen the type to also allow boolean ‘false’, which matches runtime
behaviour and docs.1 parent a416e16 commit 4ced4ad
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments