cauldron icon indicating copy to clipboard operation
cauldron copied to clipboard

Using `<Tooltip />` in typescript projects fails to compile

Open schne324 opened this issue 4 years ago • 3 comments

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'

schne324 avatar May 03 '21 21:05 schne324

for anyone seeing this experiencing the same, I hacked a workaround:

import { Tooltip } from '@deque/cauldron-react';

const CauldronTooltip: any = Tooltip

schne324 avatar May 03 '21 21:05 schne324

Need to figure out what is causing this issue.

okry avatar May 24 '22 14:05 okry

Unable to replicate https://codesandbox.io/s/tooltip-issues-test-mx2yyx?file=/tsconfig.json

Bracciata avatar Jun 26 '23 16:06 Bracciata

Also unable to reproduce. Closing.

scurker avatar Jun 12 '24 20:06 scurker