Describe the problem
Code itself allows for children of string[] but did not have the types setup correctly.
Expected behavior
tsc does not complain that something like this is incorrect
<ClipboardCopy
hoverTip="Copy"
clickTip="Copied"
variant="inline-compact"
isCode
>
sudo dnf copr enable {data.copr_owner}/
{data.copr_project} {data.chroot}
</ClipboardCopy>
Type '{ children: string[]; hoverTip: string; clickTip: string; variant: "inline-compact"; isCode: true; }' is not assignable to type 'Pick<Readonly<ClipboardCopyProps>, "children">'.
Types of property 'children' are incompatible.
Type 'string[]' is not assignable to type 'string'.ts(2322)
Is this issue blocking you?
No. Workaround is to ignore the warning
No. Workaround is to wrap the children in a statement, e.g.
<ClipboardCopy
hoverTip="Copy"
clickTip="Copied"
variant="inline-compact"
isCode
>
{`sudo dnf copr enable ${data.copr_owner}/${data.copr_project} ${data.chroot}`}
</ClipboardCopy>
Describe the problem
Code itself allows for children of
string[]but did not have the types setup correctly.Expected behavior
tscdoes not complain that something like this is incorrectIs this issue blocking you?
No. Workaround is to ignore the warningNo. Workaround is to wrap the children in a statement, e.g.