cauldron
cauldron copied to clipboard
Using `<Tooltip />` in typescript projects fails to compile
given:
<Tooltip
target={myRef}
placement="bottom"
>
I am a child
</Tooltip>
we get the following typescript error:
Property 'children' is missing in type '{ target: any; placement: "bottom"; }' but required in type 'TooltipProps'
for anyone seeing this experiencing the same, I hacked a workaround:
import { Tooltip } from '@deque/cauldron-react';
const CauldronTooltip: any = Tooltip
Need to figure out what is causing this issue.
Unable to replicate https://codesandbox.io/s/tooltip-issues-test-mx2yyx?file=/tsconfig.json
Also unable to reproduce. Closing.